Update More Than One Record

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

icesolid
Forum Regular
Posts: 502
Joined: Mon May 06, 2002 9:36 pm
Location: Buffalo, NY

Ok

Post by icesolid »

I put in the error checking but it still produces no errors and no database updates.

To answer your other question no echo's are being printed out.

I think maybe the if(!empty($_POST["submit"])) { } might be in the wrong spot, but I doubt that is the problem.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Yet another blunder by me :oops:

change

Code: Select all

if(in_array($assignID, $_POST['inspector']))    {
to

Code: Select all

if(array_key_exists($assignID, $_POST['inspector']))    {
icesolid
Forum Regular
Posts: 502
Joined: Mon May 06, 2002 9:36 pm
Location: Buffalo, NY

Works

Post by icesolid »

Thank you my man, it works great, FINALLY!!!!!!!!!! :D
Post Reply