Menu
hello all, i’ve got an insert function set up and records are being inserted into my datasebase even tho “mysql_query( $sql, $con );” is commented out…
is this possible?
here is my code:
[CODE]
<?php
$max_insert = ($_POST[‘looper’]);
for ($a=1; $a <= $max_insert; $a++){
$sql=”INSERT INTO cars (#######)
VALUES (#######)”;
echo $_POST[“c_make_$a”];
//mysql_query( $sql, $con );
}
?>
also any ideas why the for loop would insert the correct number of records and then insert the last record twice?? ?
thanks!