Hi,
I am getting a 0 is not a mysql index error in this code:
<body>
<?php $db = mysql_connect("localhost", "username", "password");
mysql_select_db("min_add.txt",$db);
$sql_query = "SELECT * FROM Minerals";
$eresult = mysql_query($sql_query,$db);
while($row = mysql_fetch_array($eresult)) {
echo $row[Mineral_Name];
echo $row[Formula];
}
?>
</body>
The error occurs at this line:
while($row = mysql_fetch_array($eresult)) {
Any suggestions?