error in mysql syntax
Posted: Wed Aug 01, 2007 2:04 am
Hi
I can't understand why this code is sending error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'VALUSE ('Javad', 'Ali' ,'11542', '0794956912', '20', 'bichare')'
I can't understand why this code is sending error:
Code: Select all
<?php
mysql_connect('localhost','root','');
mysql_select_db('hameddb');
$name="Javad";
$fn="Ali";
$shsh="11542";
$mc="0794956912";
$age="20";
$cm="bichare";
mysql_query("INSERT INTO `details` (name, father_name, shsh, mellicode, age, comments) VALUSE ('$name', '$fn' ,'$shsh', '$mc', '$age', '$cm')") or die(mysql_error()) ;
?>