Need a database table generating php script

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
sisko
Forum Newbie
Posts: 1
Joined: Sat Nov 08, 2008 5:34 am

Need a database table generating php script

Post by sisko »

Hi guys,

I need some help on a unique problem.

I'm trying to develop a web service where my users can specify meta-data of a database table. By meta-data I mean the name of the data and them the type.

On doing that, I want to enable them to create a database table from the meta-data they specified.

So I want to know if there is a php script out there which will enable me to do this.

Can anyone help?
Hannes2k
Forum Contributor
Posts: 102
Joined: Fri Oct 24, 2008 12:22 pm

Re: Need a database table generating php script

Post by Hannes2k »

Hi,
just create the specific MySQL Statement (CREATE TABLE (...);) and send it with mysql_query() to your database.
Post Reply