<html><head><LINK REL=stylesheet HREF="style.css" TYPE="text/css"></head></html>
<?php
//Connect to the database, or die trying
$dbh=mysql_connect ("localhost", "sharabas_azfc") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("sharabas_zoid");
//Make your query get stuff that's like the search, then the result
$query = "select * from zoid";
$result = mysql_query($query);
//Get the number of rows so we know how many times to loop
$num_row = mysql_num_rows($result);
for ($a = 0; $a < $num_row; $a++) {
//Get the next row
$row = mysql_fetch_array($result);
echo'<a href="select_zoid.php">$row[0]</a> <br>';
}
?>
what's wrong with that code?