Is there a php function that allows you to pass stuff like "ALTER TABLE test (John, 73)"?
If so, can someone tell me it?
Thanks,
DF
Is there a php function that allows you to pass stuff like "ALTER TABLE test (John, 73)"?
If so, can someone tell me it?
Thanks,
DF
[man]mysql_query[/man]
Alter table sql is still just sql....
Yeah it's all straight SQL. No functions used here my man...check out a string you could send to mysql!
$sql = "ALTER TABLE tablename ADD syntax_is_my_friend VARCHAR(50)";
mysql_query($sql);
Check out all the other neat things you can do with ALTER!
http://dev.mysql.com/doc/mysql/en/ALTER_TABLE.html
Hope this helps your adventures!
Chad R. Smith