hi
need help with php-mysql, dynamic insert statement
.. the code is as follows
<?
$sql = "INSERT INTO test(id) values ";
for($i=1;$i<=10;$i++) {
$sql.="($i)";
if($i!=10) {
$sql.=',';
}
}
$db_insert = mysql_query($sql,$connection)
or mysql_error();
?>
the above statement is not inserting any records ..
the insert statement i am using is correct .. also
checked with printing the sql statement .. syntax
everything is fine ... and not giving any mysql
error ...
whats going wrong?
Raghu.