Posted by ben on 11/01/05 11:40
> Here's a test program that should output Members:0 but instead I get "I
> cannot get data from the database!". Its as if the tables are not there
> but I have created them, does anyone know why this would work on one
> server but not another?
Most of the reasons that I can think of would prevent the database from
connecting in the first place.
Have you got all error reporting turned on and can confirm that the
mysql_connect and mysql_select_db are working OK?
You can also try outputting mysql_error() after the connect, select_db and
query to get more information on the problem.
Ben
Navigation:
[Reply to this message]
|