I’m having problems where the INSERT is not bringing all the records from a form after about 111 records. It will create the record with the “job_no”, but doesn’t bring in the other fields after about 111 records. Below is the code. Thanks for any help. (I added the “a” after the UID as a test. it is not necessary and didn’t help)
$resultx = mysql_query(“SELECT * FROM materials WHERE job_no=‘SAC51’ ORDER BY UID”);
while($row = mysql_fetch_array($resultx))
{
$venmat = “venmatchg” . $row[‘UID’] . “a” ;
$package = “packagechg” . $row[‘UID’] . “a” ;
$inv_no = “inv_nochg” . $row[‘UID’] . “a” ;
$date = “datechg” . $row[‘UID’] . “a” ;
$qty = “qtychg” . $row[‘UID’] . “a” ;
$uom = “uomchg” . $row[‘UID’] . “a” ;
$up = “upchg” . $row[‘UID’] . “a” ;
$invtotal = “invtotalchg” . $row[‘UID’] . “a” ;
$job = $_POST[jobnumber] . “a” ;
$uid = $row[‘UID’] . “a” ;
mysql_query(“INSERT INTO materialstest (job_no, venmat, package, invoice_no, date, qty, uom, unit_price, invtotal)
VALUES(‘SAC51’,’$_POST[$venmat]’,’$_POST[$package]’,’$_POST[$inv_no]’,’$_POST[$date]’,’$_POST[$qty]’,’$_POST[$uom]’,’$_POST[$up]’,’$_POST[$invtotal]’ )”);
}