Data is on top of table instead of in it

Data is on top of table instead of in it

crea2kcrea2k Posts: 14Questions: 0Answers: 0
edited December 2011 in General
Hi, Does anyone know why this wouldnt work ?, the data is above the table in a line instead of being in it, the table just says no data is available ?

[code]
<?php
echo '';
echo '';
echo '';
echo 'Email Template Name';
echo 'Email Template Message';
echo 'Edit';
echo 'Delete';
echo '';
echo '';

$sql = "SELECT * FROM hqfjt_chronoforms_data_addemailtemplate";
$result = mysql_query($sql) or die(mysql_error());

while ($row = mysql_fetch_assoc($result)) {

echo '';
echo $row['emailformname']; // emailformname is a col name
echo '';

echo '';
echo $row['emailformmessage']; // emailformmessage is a col name
echo '';
}


echo '';
echo '';

echo '';
echo '';
echo ' Name';

echo 'Business Name';
echo 'Edit';
echo 'Delete';
echo '';
echo '';
echo '';
echo '';
echo '';





?>
[/code]

Replies

  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin
    You want to put the table content in the TBODY section (i.e the table's body) rather than the THEAD (the header) as it currently is. Just move your loop down a few lines :-)

    Allan
This discussion has been closed.