Sorry i dont know how to colorize my code or how that even helps readers but..........
My script is doing its job by deleting records in the database via a dynamic image. Problem is I need to pring things next to this image like:
The page name, not linked to anything, and idealy a portion if not all of another record in the DB that corrosponds to this row(s)
Heres the script:
<?php
if ($delete) {
// delete a record
$sql = "DELETE FROM page_data WHERE id=$id";
$page = $myrow["page"];
echo "Page has been deleted!<p>";
} else {
if (!$id) {
echo "Please select a page to delete by clicking the delete icon <p>";
// print the list alphabetically
$result = mysql_query("SELECT * FROM page_data ORDER BY page ASC",$dbh);
echo ($myrow["page"]);
while ($myrow = mysql_fetch_array($result)) {
echo "<a href=\"" . $_SERVER['PHP_SELF'] . "?id=" . $myrow["id"] . "&delete=yes\"><img src=\"../images/delete.gif\" width=\"57\" height=\"19\" border=\"0\"></a><br>";
echo $page ;
echo "<hr>";
}
}
?>
<?php
}
?>
Can that be cleaned up any and why wont that baby print out the "page" column from the table?
Thanks much,
Matt