This is the snippet of code, the insert statement works the first time... but with the second loop it fails.. anyone know how or why this is and how i might correct it?
while($row=mysql_fetch_array($results)){
$ordernumber = $row["ordernumber"];
$product = $row["product"];
$date = date("d/m/Y");
$updateretail = mysql_query("INSERT INTO techbuy (ordernumber, date, product, price, new) VALUES ('$ordernumber', '$date', '$product', '', 'Y')") or die("Bugger .. no Updateretail");
Thanks.
Ben