我有这个功能
function update_job($title, $type, $salary, $country,
$city, $state, $category,$date,
$description, $responsabilities,
$requirements, $id_job ) {
$HOST_DB ="localhost";
$NAME_DB="jobs";
$USER_DB ="root";
$PWD_DB="";
$connect = mysql_connect($HOST_DB, $USER_DB, $PWD_DB);
$db=mysql_select_db($NAME_DB);
$requete_insert_tem = "UPDATE employment SET title = $title , type = $type , salary = $salary , country = $country , city = $city , state = $state , category = $category , date = $date , description = $description , responsabilities = $responsabilities ,
requirements = $requirements where id = $id_job ";
mysql_query($requete_insert_tem)
or die(mysql_error());
}
但出现错误“'street, category = informatique, date = 01/07/2013, description = nothing'附近的语法错误”
- 为什么我有这个错误?
- 如何解决?