You're missing the semi-colon after the ($query) on the previous line

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 22, 2002 10:26 AM
Cc: [EMAIL PROTECTED]
Subject: mysql_fetch_array


i'm checking a php that has the following thing
$result1= mysql_query($query)
$line = mysql_fetch_array($result1);

and it give me the following error



Warning:  Supplied argument is not a valid MySQL result resource in
/apache/htdocs/html/intranet.domus.cl/mail.php on line 242

where the line 242 belongs to $line

the $query anda $result it's ok... but i don't know why $line is wrong.. any
idea.???


thanx




---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to