Hiya,
I have a sript running here that lists all results from a specified column in a table.
What the goal is to have each record displayed in its own cell of a table. Thoughts? Here is the current code:
// print the list of pages alphabetically with function to delete the record
$result = mysql_query("SELECT * FROM page_data ORDER BY page ASC",$dbh);
while ($myrow = mysql_fetch_array($result)) {
printf("<a href=\"%s?id=%s\">%s </a> \n", $PHP_SELF, $myrow["id"], $myrow["page"]);
echo "<a href=\"" . $_SERVER['PHP_SELF'] . "?id=" . $myrow["id"] . "&delete=yes\"><img src=\"../images/delete.gif\" width=\"57\" height=\"19\" border=\"0\"></a><br>";
}
?>
Thanks all
😃