Posted by |-|erc on 11/02/05 00:04
"ben" <usenet@bens-house.org.uk> wrote
: > 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.
:
right if I change the login info I get "SQL Connection troubles" instead so its connecting.
i removed the exit("I cannot get data") but now I just get blank results, I'll try to pin
down the error further.
Herc
Navigation:
[Reply to this message]
|