note 7865 deleted from mysql_db_query by danbeck
| From: | danbeck@php.net | Date: | Thu, 07 Sep 2000 15:30:18 +0000 |
| Subject: | note 7865 deleted from mysql_db_query by danbeck | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-4369@lists.php.net to get a copy of this message | ||
I too spent a ridiculous amount of time making mysql_db_query() functional. The three tricks that
got me out of the pickle were:
1) Use "localhost" as db parameter for mysql_connect() but "database_name" as db
parameter for mysql_db_query().
2) Put your query string in a variable and send the variable as your second parameter.
3) The result from mysql_connect() is the third parameter for mysql_db_query().
Code samples above were helpful.