Creating a table from your local computer...???

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
Random
Forum Commoner
Posts: 30
Joined: Wed Mar 12, 2003 5:38 pm

Creating a table from your local computer...???

Post by Random »

Hi, I would like to know a PHP script to create a table from your local computer, to the remote computer.

My friend said it was something like this:

$sql = CREATE TABLE domains (blah blah blah);
$exe = mysql_query( $sql );


it didn't work though, how doI do this? I do not have access to the computer, but I do have access to a database.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

If you can connect to the database remotely then you can do things like this. Basically you have to be connected to the database in order to add tables to it so the first thing you should do is ask your remote server administrator if you can have remote access.

Mac
Post Reply