Re: [PHP] Global Changes With Loop To Allow Nulls In A Table...

2009-01-28 Thread Andrew Ballard
On Tue, Jan 27, 2009 at 5:24 PM, Boyd, Todd M. tmbo...@ccis.edu wrote: -Original Message- From: Chris [mailto:dmag...@gmail.com] Sent: Tuesday, January 27, 2009 4:04 PM To: Boyd, Todd M. Cc: php-general@lists.php.net Subject: Re: [PHP] Global Changes With Loop To Allow Nulls In A

Re: [PHP] Global Changes With Loop To Allow Nulls In A Table...

2009-01-27 Thread Ian
On 27 Jan 2009 at 8:53, revDAVE wrote: Hi Folks, Newbie question I have a mysql table with 100 fields, currently all do not allow nulls. Rather than hand typing in phpMyAdmin, I would like a way to loop through all fields and update them to allow nulls My Beginning attempt needs

RE: [PHP] Global Changes With Loop To Allow Nulls In A Table...

2009-01-27 Thread Chris Scott
Hi Folks, Newbie question I have a mysql table with 100 fields, currently all do not allow nulls. Rather than hand typing in phpMyAdmin, I would like a way to loop through all fields and update them to allow nulls My Beginning attempt needs help... $i = 1; while ($i =

Re: [PHP] Global Changes With Loop To Allow Nulls In A Table...

2009-01-27 Thread Andrew Ballard
On Tue, Jan 27, 2009 at 11:53 AM, revDAVE c...@hosting4days.com wrote: Hi Folks, Newbie question I have a mysql table with 100 fields, currently all do not allow nulls. Rather than hand typing in phpMyAdmin, I would like a way to loop through all fields and update them to allow

RE: [PHP] Global Changes With Loop To Allow Nulls In A Table...

2009-01-27 Thread Boyd, Todd M.
-Original Message- From: Andrew Ballard [mailto:aball...@gmail.com] Sent: Tuesday, January 27, 2009 11:39 AM To: revDAVE Cc: php-general@lists.php.net Subject: Re: [PHP] Global Changes With Loop To Allow Nulls In A Table... On Tue, Jan 27, 2009 at 11:53 AM, revDAVE

Re: [PHP] Global Changes With Loop To Allow Nulls In A Table...

2009-01-27 Thread Andrew Ballard
On Tue, Jan 27, 2009 at 12:58 PM, Boyd, Todd M. tmbo...@ccis.edu wrote: -Original Message- From: Andrew Ballard [mailto:aball...@gmail.com] Sent: Tuesday, January 27, 2009 11:39 AM To: revDAVE Cc: php-general@lists.php.net Subject: Re: [PHP] Global Changes With Loop To Allow Nulls In

Re: [PHP] Global Changes With Loop To Allow Nulls In A Table...

2009-01-27 Thread Chris
The other responses should get you started if this is something you really want to do. However, I'll play devil's advocate here and just raise the question why you would want to make this change in the first place. I'm not quite as anti-NULL as a lot of arguments I've read against them, but I

RE: [PHP] Global Changes With Loop To Allow Nulls In A Table...

2009-01-27 Thread Boyd, Todd M.
-Original Message- From: Chris [mailto:dmag...@gmail.com] Sent: Tuesday, January 27, 2009 4:04 PM To: Boyd, Todd M. Cc: php-general@lists.php.net Subject: Re: [PHP] Global Changes With Loop To Allow Nulls In A Table... The other responses should get you started if this is

Re: [PHP] Global Changes With Loop To Allow Nulls In A Table...

2009-01-27 Thread Chris
Boyd, Todd M. wrote: -Original Message- From: Chris [mailto:dmag...@gmail.com] Sent: Tuesday, January 27, 2009 4:04 PM To: Boyd, Todd M. Cc: php-general@lists.php.net Subject: Re: [PHP] Global Changes With Loop To Allow Nulls In A Table... The other responses should get you started if

Re: [PHP] Global Changes With Loop To Allow Nulls In A Table...

2009-01-27 Thread revDAVE
Thanks so much for everyone's help! I fooled with this and it was cool... In the mysql client, do a SHOW CREATE TABLE tableName\G And ultimately got it working with: - The MySQL syntax to alter a column is: ALTER TABLE `table` MODIFY `column` BIGINT NOT NULL; [