php-db | 2001041
Date: 04/14/01
- Next message: Matt Coyne: "[PHP-DB] ERROR"
- Previous message: Lisa Elita: "[PHP-DB] Permanent Cookies"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I can get connected to my host's MySQL database w/o error, but I cannot seem
to do anything after that.
I do:
$db = mysql_connect("localhost", "username");
mysql_select_db("subsurface_net",$db);
No problem, but if I do this:
$result = mysql_query("SELECT * FROM customer_genre",$db);
I eventually get:
Warning: 0 is not a MySQL result index in /test.phtml on line 35
And customer_genre _is_ a table in my database...
Help, anyone!?
-- Andrew Durk adurk <email protected>-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Matt Coyne: "[PHP-DB] ERROR"
- Previous message: Lisa Elita: "[PHP-DB] Permanent Cookies"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

