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

Reply via email to