![]() |
MYSQL output help
Quote:
|
[php]$result=mysql_query("select event from events")||die("error querying db");
$row = mysql_fetch_row($result); echo $row[0];[/php] Enjoy. :) |
$result is not an array. It is a MySQL resource, assuming the query was successful (if it wasn't, you'd get the call to die()). After the call to mysql_fetch_array(), $cont should be an array containing something to the likes of Array("event" => /*whatever an event would be*/). You can call mysql_fetch_array($result) as many times as rows were returned from the query (mysql_num_rows($result)).
|
| All times are GMT -5. The time now is 1:15 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC