KdZ' Simple® | simogeo a écrit :
c'est bien goret quand même là
Code :
- $sql = "INSERT INTO tth_liens SET titre='".$_POST['titre']."',lien='".$_POST['url']."',description='".$_POST['description']."',avis='".$_POST['avis']."',note='".$_POST['radiobutton']."',protocole='".$_POST['protocole']."';";
|
|
ça change rien, j'ai le meme msg
Voila le code modifier :
Code :
- if($_GET['action'] == 'nouvelle')
- {
- $sql = "INSERT INTO tth_liens SET titre='".$_POST['titre']."',lien='".$_POST['url']."',description='".$_POST['description']."',avis='".$_POST['avis']."',note='".$_POST['radiobutton']."',protocole='".$_POST['protocole']."';";
- if(!$_POST['titre'] or !$_POST['url'] or !$_POST['description'] or !$_POST['radiobutton'] or !$_POST['protocole'])
- exit('Attention, TOUS les champs doivent être renseignés !<br /><br /><a href="javascript:history.go(-1)"><< Retour</a>');
- else
- mysql_query($sql) or die ('Erreur, la fiche n\'a pas pu être sauvegardée !');
- print('La fiche à été correctement sauvegardée !
- <br />
- <hr />
- <br />
- <a href="admin/bdd.php">Créer une nouvelle fiche</a>
- ');
- }
|
Message édité par KdZ' le 29-10-2003 à 22:05:05
|