Take out the "@" so you can see what error is returned.
Echo your defines to confirm that you are getting what you expect.
Double check that you have the browser set to refresh on every call to a page.
Clear your cache.
Use the header() function to add code at the top of the page to force a refresh.
HTH - Miles
At 04:42 PM 8/16/2003 +0530, murugesan wrote:
Hello all, I have some existing php pages already. Now I want to change the DB to point to another DB.
I have changed the include_path in php.ini file to point to /home/config Also I changed the constant db_name defined in a file in /home/config/con.php to point to new DB.
[snip] <<<<<<<<< include "con.php" @mysql_pconnect(db_host,db_user,db_pass); mysql_select_db (db_name) or die ("could not select db"); <<<<<<<<<<
<<<<<<<<<<<<<<<<< //contents of con.php
<?php define('db_host','localhost'); define('db_name','newdb') ; define('db_user','scott') ; define('db_pass','tiger') ; define('db_type','mysql') ; ?>
<<<<<<<<<<<<<< Also I restarted the apache. But it is still accessing the old DB. What are all the changes that I have to make. other than these changes.
Regards, Murugesan.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php