if ($horairefin==":") $horairefin =NULL; else $horairefin = "'".$horairefin."'";
$heure=$HTTP_POST_VARS['heure']; $minute= $HTTP_POST_VARS['minute']; $horaire= $heure.":".$minute; if ($horairefin==":") {$horairefin =NULL;}
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question$resultat = mysql_query ("INSERT INTO evenement (titre, soustitre, festival, datereelle, datedebut, datefin, heure, heurefin, lieu, site, description, prix, prixspecial, lien, cible, miseenpage, image, theme1, theme2, theme3) VALUES ("$titre","$soustitre","$titrefestival","$datereelle","$datedebut","$datefin", "$horaire", "$horairefin", "$lieu", "$site", "$description","$prix","$prixspecial","$lien","$cible","$miseenpage","$image", "$themes1", "$themes2", "$themes3")",$dbi);
if ($horairefin==":" ) {$horairefin ='NULL';} else {$horairefin=""".$horairefin.""";}