In table1 I have 5 colums of data: idt(primary key), datetime, col1, col2 and col3. I would like to print out the contents of this table.
"SELECT * FROM [table1];"
echo "<center><table>"
while count($data['idt']) {
echo "<tr><td>"
echo $data['idt']
echo "</td></tr><tr><td>"
$data['datetime']
echo "</td></tr><tr><td>"
$data['col1']
echo echo "</td></tr><tr><td>"
echo $data['col2']
echo "</td></tr><tr><td>"
echo $data['col3']
echo "</td></tr>"
}
echo "</table></center>"