Page 1 of 1

New DB Columns

Posted: Thu Jul 08, 2004 1:48 pm
by Joe
Is there any way to create a new table column using PHP. For example if a new product 'carrots' was added through the admistration panel and the column never existed in the database table then is there anyway to create it.

Any help appreciated

Regards


Joe 8)

Posted: Thu Jul 08, 2004 2:10 pm
by magicrobotmonkey
i think it would be better to rethink your database design then add columns. HAve a table called "products" and add new products there?

Posted: Thu Jul 08, 2004 2:12 pm
by Joe
I think you may just be right there magicrobotmonkey. I had an idea which was similar to yours and im going to try it out. Thanks alot!