Maybe my eyes are just tired...
Can anyone help me spot the syntax error in this code:
[PHP]$sql = "INSERT INTO `images` ( 'imgid' , 'lstid' , 'descrip' )
VALUES (
'', '" ."$pid". "', ''
);";
$result = @mysql_query("$ sql") or die(mysql_error ());[/PHP]
I get the error:
You have an error in your SQL syntax near ''imgid' , 'lstid' , 'descrip' ) VALUES ( '', '15', '' )' at line 1
thanks in advance for your help!!!
Can anyone help me spot the syntax error in this code:
[PHP]$sql = "INSERT INTO `images` ( 'imgid' , 'lstid' , 'descrip' )
VALUES (
'', '" ."$pid". "', ''
);";
$result = @mysql_query("$ sql") or die(mysql_error ());[/PHP]
I get the error:
You have an error in your SQL syntax near ''imgid' , 'lstid' , 'descrip' ) VALUES ( '', '15', '' )' at line 1
thanks in advance for your help!!!
Comment