php - web service update error -


I have a web service that shows this error

There is an error in your SQL syntax ; To use '0', date_de_naissance = '1988-02-02', check the manual associated with your MySQL server version for the correct syntax, lieu_de_naissance = 'at line 4 {"item": [["succes" ]]}

  & lt ;? Includes php ('settings.php'); Mysql_connect ($ host, user $, $ password); Mysql_select_db ($ base); Mysql_query ('set character settings utf8'); $ Id_patient = $ _GET ['id_patient']; $ nom = $ _GET ['name']; $ Prenom = $ _GET ['prenom']; $ Gender = $ _GET ['gender']; $ Date_de_naissance = $ _GET ['date_de_naissance']; $ Lieu_de_naissance = $ _GET ['lie__de_naissance']; $ Adresse = $ _GET ['adresse']; $ Latitude = $ _GET ['latitude']; $ Longitude = $ _GET ['longitude']; $ Telephone = $ _GET ['telephone']; $ Email = $ _GET ['email']; $ Situation_familiale = $ _GET ['situation_familiale']; $ Profession = $ _GET ['business']; $ Numero_securite_sociale = $ _GET ['numero_securite_sociale']; $ Tel = $ _GET ['tail']; $ Poids = $ _GET ['poids']; $ Groupe_sanguin = $ _GET ['group_songin']; $ Allergy = $ _GET ['allergy']; $ Predecessor_charigroups = $ _GET ['predecessor_cirigroups']; $ Predecessor_medium = $ _GET ['predecessor_midQ']; $ Predecessor_filiaIks = $ _GET ['predecessor_filiax']; If ($ id_patient! = Zero) {$ request = "updated patient set nom = '". $ nom "', prenom ='". $ Prenom ", Sexe = '". $ Sexe "', Date_de_naissance ='". $ Date_de_naissance. "', Lieu_de_naissance ='". $ Lieu_de_naissance. "', Adresse ='". $ Adresse. "', Latitude ='". $ Latitude. "', Longitude ='". $ Longitude "', Telephone ='". $ Telephones "', Email =' '. $ Email.' ', Condition_familyal =' ". $ Status_famille "', Profession =' '. $ Profession.' ', Numero_securite_sociale =' ". $ Numero_securite_sociale. "', Size ='". $ Size. '', POIDS = '". $ POIDS. "', Groupe_sanguin ='". $ Groupe_sanguin. '', Allergy = ''. $ Allergy. "', Antecedents_chirurgicaux ='". $ Antecedents_chirurgicaux. '', Antecedents_medicaux = '"$ antecedents_medicaux ..', antecedents_familiaux = '" $ antecedents_familiaux .. "' Where id_patient = '" $ id_patient .. "'; $ Sql ​​= mysql_query ($ request); Echo mysql_error (); $ Items = array ("item" => NULL); $ Item ["item"] [] = array ("success"); Echo json_encode ($ items, JSON_UNESCAPED_UNICODE); } And {$ items = array ("item" = & gt; NULL); $ Item ["item"] [] = array ("error"); Echo json_encode ($ items, JSON_UNESCAPED_UNICODE);}? & Gt;    

A close quote was unavailable.

  $ REQ = "Update Patient Set = '". $ Name "', Pérenum ='". $ prenom "', Sex ='". $ Gender "',    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -