dear friends..

 i'm doing a simple script that use mysql_fetch_array() and it give me the
 following error.

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

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


 here is the code, there is no problem with the connection to BD, i probe it
 and it works.. but this problem don't let print nothing in a web page..

 i'll appreciate your help...



 <html>
 <body>
 <?
 include("config.inc");
 $db = mysql_connect($servidor, $usuariodb, $password);
 mysql_select_db($base,$db);
 ?>
 <?
 $result = mysql_query("select nombres,email from usuarios");
 while ($row = mysql_fetch_array($result)) {
     echo "user_id: ".$row["nombres"]."<br>\n";
     echo "user_id: ".$row[0]."<br>\n";
     echo "email: ".$row["email"]."<br>\n";
     echo "fullname: ".$row[1]."<br>\n";
 }
 mysql_free_result($result);
 ?>
 </body>
 </html>






---------------------------------------------------------------------
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