1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| <?php
mysql_connect("localhost","root","");
mysql_select_db("trafic");
$sql="INSERT INTO booking (label_book, date_book, duree_book, rq_book, duree_pro, code_fournisseur)
VALUES
('$_POST[label_book]', '$_POST[date_book]', '$_POST[duree_book]', '$_POST[rq_book]', '$_POST[new_id_code]', '$_POST[fournisseur]')";
if (!mysql_query($sql))
{
die('Error: ' . mysql_error());
}
echo "1 record added";
mysql_close()
?>
_____________________________________________________________________________________________[Booking et Fournisseur!!!]
<?php
mysql_connect("localhost","root","");
mysql_select_db("trafic");
$sql="INSERT INTO sur_un (code_book, code_srv, correspondant, demandeur)
VALUES
('$_POST[label_book]', '$_POST[date_book]', '$_POST[duree_book]', '$_POST[rq_book]', '$_POST[new_id_code]', '$_POST[fournisseur]')";
if (!mysql_query($sql))
{
die('Error: ' . mysql_error());
}
echo "1 record added";
mysql_close()
?> |
Partager