mysql building tables in runtime

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
pelegk2
Forum Regular
Posts: 633
Joined: Thu Nov 27, 2003 5:02 am
Location: Israel - the best place to live in after heaven
Contact:

mysql building tables in runtime

Post by pelegk2 »

1)can i build tables at run time from php?
2) can i add and remove after it col's from my table?
thanks in advance
peleg
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

you can use such queries as:

Code: Select all

mysql_query("create table .....");
mysql_query("alter table add column....");
mysql_query("alter table drop column....");
User avatar
pelegk2
Forum Regular
Posts: 633
Joined: Thu Nov 27, 2003 5:02 am
Location: Israel - the best place to live in after heaven
Contact:

thanks alot

Post by pelegk2 »

just what i wanted!
Post Reply