My PHP code looks like this:
$query = "my query here";
$result = mysql_query($query);
$row = mysql_fetch_array($result,MYSQL_NUM);
I ran a MySQL query through the client and it returns this (which is how I want it):
Code: Select all
+------------------------+-----------------------------+
| date | name |
+------------------------+-----------------------------+
| Wednesday | Bill |
| Wednesday | Bob |
| Thursday | Joe |
+------------------------+-----------------------------+Now, how would I reference these values after using mysql_fetch_array()? I tried
echo $row[0]. " " .$row[1]; but it doesn't output anything.
So I would I output the array?
Thanks