it just as same as doing a query:
$db->connect();
$db->query("ALTER TABLE table CHANGE field field ~ATTRIBUTES~");
well, that was with a DB abstraction layer.
just use what you usually use to query your Db having your ALTER TABLE in
the mysql_query. (no need to show the results up)
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
-----Original Message-----
From: Augusto Cesar Castoldi [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 27, 2001 6:19 AM
To: [EMAIL PROTECTED]
Subject: [PHP] alter table name with php and mysql
How can I alter a table name in mysql with php?
thanks,
Augusto cesar Castoldi
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]