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

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -