Le forum de la radio, depuis 2005.

Antennes, webradios, animateurs, technique, créations sonores : lancez un sujet, répondez en texte ou en message vocal, partagez vos photos et vos sons, votez aux sondages.

Créer un compteSe connecterGratuit, en trente secondes.
·actif
2 269
·actif
9 152
+1
·actif
8 291
·actif
1 341
+3
·actif
788
·actif
1 084
1 179
·actif
13 174

[PHP TUTO] Systeme de dédicass

Bon voilà je vais vous posté mon système dédi. Allé c'est partie on commence avec l'index.php : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr"> <head> <title>Accueil les dédis!</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> </head> <body> <marquee behavior="scroll" scrollamount="5" direction="left" width="800"> <?php include('config.php'); /*on selectionne les derniere 10derniere dedicase envoyer dans la bd e ton les li*/ $retour_dedi = mysql_query('SELECT * FROM dedicasse ORDER BY id DESC limit 0,10')or die(mysql_error("Impossible de selectionner les données dans la tables <b>'dedicasse'</b> ")); /* on verifie si une dedicasse existe */ $donnes_dedi_compte = mysql_num_rows($retour_dedi); if($donnes_dedi_compte > 0){ /* si une dedicasse existe alors on continue le script */ /*petite boucle while pour afficher les 10 derniere dedi*/ while($donnes_dedi = mysql_fetch_array($retour_dedi)){ /*variables pour els dedicasse+secu */ $pseudo_dedicasse = htmlspecialchars($donnes_dedi['pseudo']); $message_dedicasse = htmlspecialchars($donnes_dedi['message']); $date_dedicasse = $donnes_dedi['date']; ?> Par <b><u><?php echo $pseudo_dedicasse; ?></b></u> <i><?php echo $date_dedicasse; ?></i> - <b><u>Message:</u></b> <?php echo $message_dedicasse; ?> <b>.::.</b> <?php } }else{ /*aucune dedicasse existe on affiche un petit message :) */ ?> Il y a actuellement aucune dedicasse disponnible! <?php } ?> </marquee> </body> </html> Comme vous pouvez voir on prend les 10 dernière dedicasse et on les met direct sur le site et aussi un système de marquee pour que sa défile :P. On continue avec envoie.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr"> <head> <title>Envoyer une dédicasse</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <style type="text/css"> #erreur{ width: 250px; border: 2px solid #CD3333; text-align: justify; padding: 3px; padding-left: 5px; margin-top: 10px; margin-bottom: 10px; border-radius: 3px; -moz-border-radius: 3px; -webkit-border-radius: 3px; background-color: #FAFAFA; } #bon{ width: 250px; border: 2px solid #66CD00; text-align: justify; padding: 3px; padding-left: 5px; margin-top: 10px; margin-bottom: 10px; border-radius: 3px; -moz-border-radius: 3px; -webkit-border-radius: 3px; background-color: #FAFAFA; } </style> </head> <body> <?php include('config.php'); /*on verifie si le formulairz a était envoyer */ if(isset($_POST['envoyer_dedi'])){ if(isset($_POST['pseudo_poster']) &&amp…
·actif
4 752
·actif
1 136
·actif
774
Rémi DucloiedansTechnique radiophonique
·actif
1 444
·actif
4 712
·actif
809