Results 1 to 3 of 3
i use this query on mysql console it's working.
CREATE TABLE backup.backup_table SELECT * FROM data_orig.user
and i use on php not working .!!! how to connect 2 database on ...
- 12-29-2008 #1Just Joined!
- Join Date
- Jun 2007
- Posts
- 84
how to copy table to another database[PHP]
i use this query on mysql console it's working.
CREATE TABLE backup.backup_table SELECT * FROM data_orig.user
and i use on php not working .!!! how to connect 2 database on 1 query.
thank you.
- 12-29-2008 #2
Could we see the php code...Thanks Gerard4143
- 12-29-2008 #3Linux Guru
- Join Date
- Nov 2007
- Posts
- 1,695
You can read the PHP documentation, find the section on the DB you're using (MySQL, Postgre, etc.), and then look at the select_db function.
PHP > MySQL > mysql_select_db


Reply With Quote