brotherhood of LAN

msg:4199858 | 6:33 am on Sep 10, 2010 (gmt 0) |
Welcome to the forums az123ss, Did you manage to solve your problem? I would suggest testing your connection to your database in a separate simple test script to ensure that you can get a working connection to it, aside from any scripts that rely on the DB.
|
az123ss

msg:4200015 | 2:49 pm on Sep 10, 2010 (gmt 0) |
Thanks for the reply. How can I test the connection to my database...
|
brotherhood of LAN

msg:4200250 | 8:06 pm on Sep 10, 2010 (gmt 0) |
Assuming it is MySQL... <?php // save as test.php mysql_connect('database_host','database_username',database_password') or die('Problem with MySQL connect: '.mysql_error()); mysql_select_db('database_name') or die('Problem connecting to database: '.mysql_error()); echo 'Database connection successful'; ?>
|
|