J'ai un souci de requete :
Code : Tout sélectionner
$sql="INSERT INTO vol VALUES('$n_vol',$Ntype,31,$_POST['continent'],'$_POST['ville']','$_POST['h_depart']','$_POST['h_arrive']',0,'$_POST['frequence']');";
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in aa.php on line 49
et voici la table :
create table vol(
n_vol varchar(10) constraint cle_vol primary key,
n_type integer,
duree_vol integer constraint dom_duree_vol check (duree_vol between 30 and 1@--> 440),
code_continent integer,
destination varchar(20) not null,
vol_h_depart time,
vol_h_arrivee time,
nb_h_vol integer,
frequence varchar(8) constraint dom_frequence check (frequence in ('lundi','@--> mardi','mercredi','jeudi','vendredi','samedi','dimanche')),
constraint n_type_cle_type_avion foreign key (n_type) references type_avion @--> (n_type),
constraint code_continent_cle_continent foreign key (code_continent) referen@--> ces continent (code_continent));
Merci de votre aide.
[/code]