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 robert.vanderh...@umassmed.edu wrote: I appreciate the replies I've received already; thanks! Sorry for not catching my simple errors before sending out

[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: ?php include

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

2013-03-26 Thread VanderHart, Robert
where authorid='$authorid'; If you want to update all the rows in you table you can use (for example): ... name=department[$row[authorId] and in php: $department=$_POST['department'][$authorId]... Premek. On Tue, 26 Mar 2013 16:19:24 +0100, VanderHart, Robert robert.vanderh...@umassmed.edu