Find the answer to your Linux question:
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 ...
  1. #1
    Just 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.

  2. #2
    Linux Enthusiast gerard4143's Avatar
    Join Date
    Dec 2007
    Location
    Canada, Prince Edward Island
    Posts
    714
    Could we see the php code...Thanks Gerard4143

  3. #3
    Linux 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...