Adding columns to MySQL tables using PHP

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
Jim
Forum Contributor
Posts: 238
Joined: Fri Apr 19, 2002 5:26 am
Location: Near Austin, Texas

Adding columns to MySQL tables using PHP

Post by Jim »

How does one add a new column to a MySQL table using PHP?

Graci!
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

http://www.php.net/manual/en/ref.mysql.php

SQL-Query: "ALTER TABLE `tablename` ADD `column` column-properties "
Post Reply