1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| <?
$conn_string="host=localhost port=5432 dbname=gestion2 user=postgres password=sgui5gµi";
$dbconn4=pg_pconnect($conn_string);
$num=$_POST["Numres"];
$des=$_POST["txt_des"];
$ve=$_POST["txt_ve"];
$hf=$_POST["txt_hf"];
$hd=$_POST["txt_hd"];
$date=$_POST["txt_date"];
$nom=$_POST["txt_nom"];
$pre=$_POST["txt_pre]";
$cod=$_POST["txt_cod"];
$com=$_POST["txt_com"];
$up="update reserver set nomag='$nom', prenag='$pre', lieu='$des', dateres='$date', heuredep='hd', heureret='$hf', codevehicule='$cod', comres='$com' where Numres= $num";
echo $up;
$res=pg_query($dbconn4,$up);
pg_close($dbconn4); ?> |
Partager