strange error

From: Date: Tue, 22 Aug 2000 16:03:34 +0000
Subject: strange error
Groups: php.db 
Request: Send a blank email to php-db+get-2264@lists.php.net to get a copy of this message
Hi everybody . I've posted this message before, but then I had some trouble with my computer and lost my mails before I could read all of your replies, so I'm posting it again... Thanks . --------------------------------------------- Problem is as follows. I'm trying to execute a simple query from my MySQL database, but everytime y try to read a register, it keeps on printing the same error message. The database access permissions work just fine, as well as the connection. ---This is the php archive <html> <body> <?php $db = mysql_connect("xxxxx","root","xxxxxx"); mysql_select_db("db_prueba",$db); $result = mysql_query("SELECT * FROM usuarios",$db); printf("Login: %s<br>\n", mysql_result($result,0,"login")); ?> </body> </html> ---This is what I receive Warning: Supplied argument is not a valid MySQL result resource in /export/home2/homepage/docs/prueba_db.php4 on line 8 First Name:

« previous php.db (#2264) next »