Forum Moderators: coopster

Message Too Old, No Replies

Adding fields to an existent table through PHP

         

toltec75

6:29 pm on Dec 15, 2006 (gmt 0)

10+ Year Member



Is something like this possible?
A PHP script that would add for example 3 new fields to a table that already has 5.
A long shot but...
Either this or a heavy site reconstruction... :D

mcavic

7:33 pm on Dec 15, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Assuming you mean a MySQL table, yes, you can insert columns anywhere in the table on-the-fly using Alter Table [google.com]. The user that's logged into MySQL just has to have the alter table permission.