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 33 34 35 36 37 38
| $q = "INSERT INTO `$db_name`.`annonces` (
`id` ,
`add_date` ,
`modify_date` ,
`ind_type` ,
`ref` ,
`adr` ,
`type` ,
`surface` ,
`description` ,
`facade` ,
`caracteristiques` ,
`viabilite` ,
`divers` ,
`prix` ,
`exclusivite1` ,
`exclusivite2` ,
`dpe` ,
`ges` ,
`date_entree`)VALUES (NULL ,
NOW( ) ,
NOW( ) ,
'$_POST[ind_type]',
'$_POST[ref]',
'$_POST[adr]',
'".eschtml($_POST[type])."',
'".eschtml($_POST[surface])."',
'".eschtml(mysql_real_escape_string($_POST['description']))."',
'".eschtml($_POST[facade])."',
'".eschtml($_POST[caracteristiques])."',
'".eschtml($_POST[viabilite])."',
'".eschtml($_POST[divers])."',
'".eschtml($_POST[prix])."',
'".eschtml($_POST[exclusivite1])."',
'".eschtml($_POST[exclusivite2])."',
'".eschtml($_POST[dpe])."',
'".eschtml($_POST[ges])."',
'$_POST[date_entree]');"; |
Partager