On Tuesday, 12. February 2002 03:22, [AFQ]T1T4N wrote:
G'Morning!

Put an echo mysql_error(); behind your mysql_query statement and check error 
ouput.

>  <html>
>  <body>
>  <?
>  include("config.inc");
>  $db = mysql_connect($servidor, $usuariodb, $password);
>  mysql_select_db($base,$db);
>  ?>
>  <?
>  $result = mysql_query("select nombres,email from usuarios");
+  echo mysql_error();
>  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>

George

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