View Single Post
Old Aug 31st, 2006, 3:33 PM   #1
kruptof
Professional Programmer
 
kruptof's Avatar
 
Join Date: May 2006
Location: UK - London
Posts: 330
Rep Power: 3 kruptof is on a distinguished road
MYSQL output help

Quote:
<?
mysql_connect(xxxxxxxxx,'xxxxxxxx','xxxxxxxx')||die("Error Connecting to server");

mysql_select_db("db")||die("Error Connecting to database");

$result=mysql_query("select event from events")||die("error querying db");
echo $result[0];
#$cont=mysql_fetch_array($result);
?>
i can't seem to get this working..........when i run it nothing is ouputted when i try to use the fetch array function i get an error that i supplied an argument that is not an array.....i got values inside the db...any help please.
__________________
Quote:
When I was young it seemed that life was so wonderful,a miracle, oh it was beautiful, magical.
Now watch what you say or they'll be calling you a radical,a liberal, oh fanatical, criminal. Oh won't you sign up your name,we'd like to feel you're acceptable, respectable, oh presentable, a vegetable
kruptof is offline   Reply With Quote