$result ?

From: Date: Sat, 25 Nov 2000 23:19:49 +0000
Subject: $result ?
Groups: php.general 
Request: Send a blank email to php-general+get-27197@lists.php.net to get a copy of this message
I am using Mysql and i keep getting this error: Fatal error: "Call to undefined function: array() in /home/xxx/xxx/Football/Main.php on line 21". It prints the number of rows (1) if I leave out the last 2 lines (21 and 22).What am i doing wrong? mysql_connect ("xxx","xxx","xxx") or die("a"); mysql_select_db("ampsoft_com") or die("b"); $result = mysql_query("select EMAIL from FBusers where Name = 'mike'"); $Norow = mysql_num_rows($result); echo $Norow; $row = mysql_fetch_row($result); echo $row(0); mpeloso@princeton.edu

« previous php.general (#27197) next »