I'm using a simple script that simply gets rows and increments to the next. I have the index starting at 0. I get the folling warning: Warning: 0 is not a MySQL result index... Does any one have any suggestions. This is the code I am using:
<?
$dbh = mysql_connect('localhost:3306','username','password');
$res = mysql_db_query('database_name',"select * from test");
$err = mysql_error();
if($err){ echo "Error connecting to database"; }
$i=0;
while ($line = mysql_fetch_row($i)){
echo "$line<BR>\n";
$i++;
}
?>
I'm connecting ok. I can't get past '$=0;'
The suggestions are very much appreciated.
Kathy