The Following is my PHP code
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<?php require_once('Connections/testdatabase.php');
mysql_select_db("elementary", $testdatabase);
$search = mysql_query("select * from elementary", $testdatabase);
while($myarray=mysql_fetch_array($search))
{
echo $myarray["ID"];
echo $myarray["Location"]."<br>";
}
?>
<body>
</body>
</html>
The web server tells me that
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in f:\database\action.php on line 9
which is while($myarray=mysql_fetch_array($search))
I do not know why it is not working!!
Thanks for help!!