RE: [PHP-DB] Undefined variables in update query

2013-03-27 Thread VanderHart, Robert
, Robert Cc: php-db@lists.php.net Subject: Re: [PHP-DB] Undefined variables in update query On Tue, Mar 26, 2013 at 10:57 AM, VanderHart, Robert wrote: > I appreciate the replies I've received already; thanks! Sorry for not > catching my simple errors before sending out that message. No

Re: [PHP-DB] Undefined variables in update query

2013-03-26 Thread tamouse mailing lists
On Tue, Mar 26, 2013 at 10:57 AM, VanderHart, Robert wrote: > I appreciate the replies I've received already; thanks! Sorry for not > catching my simple errors before sending out that message. No worries, no one I have met yet begins life knowing this stuff! If you don't mind, Robert, I'd lik

RE: [PHP-DB] Undefined variables in update query

2013-03-26 Thread VanderHart, Robert
290 | robert.vanderh...@umassmed.edu -Original Message- From: Přemysl [mailto:premysl.fi...@lim.cz] Sent: Tuesday, March 26, 2013 11:46 AM To: php-db@lists.php.net Subject: Re: [PHP-DB] Undefined variables in update query Hi, it appears to me that you have some strange input[name] attribute. in

Re: [PHP-DB] Undefined variables in update query

2013-03-26 Thread Přemysl
Hi, it appears to me that you have some strange input[name] attribute. instead of value=\"$row[department]\">... try ... In php you are not initializing variables. That means $department is only set if $_POST['department'] exists. You can try this: add: $sql = ''; instead of if (i

[PHP-DB] Undefined variables in update query

2013-03-26 Thread VanderHart, Robert
Hi, I'm pretty new to PHP and to this discussion list. I have a web form to update some fields in a data table. I'm getting "undefined variable" notices in my error logs when I submit the form and the table row doesn't get updated. Here's the code for the form page: Editing Record "; for (