while ($line = mysql_fetch_array($result1)
  {

   execute your code
  
  }

Curtis
   ---- Original Message ----
From:           [EMAIL PROTECTED]
Date:           Tue 1/22/02 11:40
To:             Undisclosed Recipients
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