retriving mysql data, and placing it inside a table in html using perl
hi
i am getting data from a database displayed on the web using PHP. i would like to place the data inside a table. how do i do this?
mysql_select_db (cctvimages);
$result = mysql_query ("SELECT * FROM imageinfo
");
if ($row = mysql_fetch_array($result)) {
do {
print ("<table border =1> <tr> <td> Data</td> </tr> </table> ");
print $row["image_id"];
print ("");
print $row["image_name"];
print ("");
print $row["image_size"];
print ("");
print $row["image_date"];
print ("<p>");
} while($row = mysql_fetch_array($result));
} else {print "Sorry, no records were found!";}
?>
|