1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
public function insertion(){
$this->appelbase();
$sql_insert="INSERT INTO utilisateurs(Nom,Prenoms,Fonction,CodeUtilisateur,Mdp) VALUES('".$this->Nom."','". $this->Prenom."','". $this->Fonction."','".$this->CodeUtilsateur."','".$this->Mdp."')";
print_r($sql_insert);
$query=mssql_query($sql_insert);
$this->Fonction,$this->CodeUtilsateur,$this->Mdp);
return $query;
}
et le resultat qu'il affiche est:
Array ( [tilisateurs] => Array ( [nom] => A [prenom] => Z [fonction] => E [cduser] => R [mdp] => a ) [ok] => OK [action] => submitted ) avant appel
INSERT INTO utilisateurs(Nom,Prenoms,Fonction,CodeUtilisateur,Mdp) VALUES('','','','','')1
et je nais pas comment faire
je suis débutant en php mssql |
Partager