Re: [PHP-DB] Error: "Resource id #3"

2005-05-14 Thread Firan Corneliu
The message that you receive is not an error, it is a description of the object $result after the query is done. So, you will not get anywhere just by echo $result, you have to process that information using one of the mysql_fetch_array(),mysql_fetch_assoc(), mysql_result(). In your case try :

RE: [PHP-DB] Error: "Resource id #3"

2005-05-14 Thread Bastien Koert
Actually, that is exactly what you are doing. $result is the handle to the dataset, not the dataset itself. Try this: //log to the server $db=mysql_connect("localhost","root",""); if ($db) { //test if the connexion works $sel=mysql_select_db("test"); if ($sel) { $sql_query="SELEC

RE: [PHP-DB] Error: "Resource id #3"

2005-05-14 Thread Marc Henri
Hello, Thank you very much to Bastien Koert and Firan Corneliu. You both solved my problem. Shame on me! _ Découvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails