, 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
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
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
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