Ok. $chk_array is an array passed from the previous script, to determine how many times I need to loop. Maybe this is where I am going wrong.
--------CODE----------
$count = sizeof($chk_array);
$count = 0;
while ($count <=$size)
{
/ do our db update /
// create a variable for the db connection using @ to supress warnings
$con1 = mysql_connect("$hostName","$userName","$password") or
die("Couldn't connect to the database server - please try again or contact your database administrator.");
// use a variable to hold the result of the selection query
$db1 = mysql_select_db($databaseName, $con1) or
die("Couldn't select the database - please try again or contact the db admin");
// heres the actual insert statement, which will insert the jobs into the db for further ranking
$sql1 = "
UPDATE $drumtable SET
date = '$date',
time = '$time',
rnk = '$rnk',
job_desc = '$job_desc',
job_cunm = '$job_cunm',
close_1 = '$close_1',
job_id = '$job_id',
conv_date = '$conv_date',
lark_qty_1 = '$lark_qty_1',
lark_um_1 = '$lark_um1',
lark_sz1 = '$lark_sz1',
convhrs_1 = '$convhrs_1',
eaddtl_desc_1 = '$eaddtl_desc_1',
hf_01 = '$hf_01',
hot = '$hot'
WHERE id = $id_num
";
// use a variable for the rest of the db query
$result = mysql_query($sql1,$con1) or
die("Couldn't UPDATE the schedule! Please try again, or call the db admin");
$count = $count+1;
}