Re: [PHP-DB] add a column to a table via PHP

2001-03-13 Thread ME
Yes, you're quite right. Mea culpa... -Original Message- From: Sean Finkel [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 13, 2001 7:56 AM To: [EMAIL PROTECTED] Subject: Re: [PHP-DB] add a column to a table via PHP Wouldn't you also need the datatype of the new column (i

Re: [PHP-DB] add a column to a table via PHP

2001-03-13 Thread Sean Finkel
AIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 13, 2001 7:36 PM Subject: RE: [PHP-DB] add a column to a table via PHP The following assumes you've already selected the database and that $column contains the name of the new column and $defaultvalue is the value to be se

RE: [PHP-DB] add a column to a table via PHP

2001-03-13 Thread Martin E. Koss
: [EMAIL PROTECTED] Subject: RE: [PHP-DB] add a column to a table via PHP The following assumes you've already selected the database and that $column contains the name of the new column and $defaultvalue is the value to be set. $query = "ALTER TABLE Prices ADD $column DEFAULT \&quo

RE: [PHP-DB] add a column to a table via PHP

2001-03-13 Thread ME
The following assumes you've already selected the database and that $column contains the name of the new column and $defaultvalue is the value to be set. $query = "ALTER TABLE Prices ADD $column DEFAULT \"$defaultvalue\""; mysql_query($query) or die("Can't add column to Prices"); $query = "UPDA