Hi all,
The following is a snippet of my code:
<?php
include("include/dbconnect.php");
if($id){
$query = "SELECT * FROM list WHERE Address='$id'";
$result = mysql_query($query);
while($row = mysql_fetch_array($result)){
echo "<a href=\"book.php?id={$row['CatID']}\"><b>{$row['CatName']}</b></a><br>\n";
}
?>
If there were no values in the database how would i change the script to echo an error message?
Thanx,
wado