database - Parse error: syntax error, unexpected '$sql' (T_VARIABLE) in -
parse error: syntax error, unexpected '$sql' (t_variable) in /home/orientsolutionsc/public_html/cdmdb/dbcon.php on line 19
here codes
//insert data `mysql` $sql="insert users(jimbo, kata, mtaa ,uongozi ) values('$jimbo', '$kata', '$mtaa' '$uongozi')"; $result=mysql_query($sql);
$sql="insert users(jimbo, kata, mtaa ,uongozi ) values('".$jimbo."', '".$kata."', '".$mtaa."', '".$uongozi."')"
or if want insert '$jimbo'
etc.. string then
$sql="insert users(jimbo, kata, mtaa ,uongozi ) values('$jimbo', '$kata', '$mtaa', '$uongozi')";
Comments
Post a Comment