My address bar is this: (it contains the job number 113852)
http://www.mysite.?0=113852
My array output is this: (it contains serial numbers... array amounts change)
Array ( [joblist] => Array ( [0] => gi4416ncd876 [1] => GI4521NA3391 [2] => M40719GD6274 ) [btnSubmit] => SUBMIT )
My php code:
$connection = mysql_connect('#', '#', '#');
mysql_select_db('#');
$equipmentquery="UPDATE tbl_assets
SET date_installed = curdate(), account_number = {$_GET ['0']}
WHERE serial = $_POST['joblist']";
I am getting a server error. How do I write this sql query to go thru the entire array and update my table?