Using the PHP code generated my PHPmyAdmin

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
Steveo31
Forum Contributor
Posts: 416
Joined: Sun Nov 23, 2003 9:05 pm
Location: San Jose CA

Using the PHP code generated my PHPmyAdmin

Post by Steveo31 »

Not sure which version, came with easy PHP (the latest).

I create a database in PhpMyAdmin, and it has an option to give you the PHP code. To create a database it is

Code: Select all

$sql = 'CREATE DATABASE `user` ';
But how would I implement this? Using mysql_query($sql)?
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post by markl999 »

Yes.
Steveo31
Forum Contributor
Posts: 416
Joined: Sun Nov 23, 2003 9:05 pm
Location: San Jose CA

Post by Steveo31 »

Thanks Mark, you da man.





You followin me? Good ;)
Post Reply