Probleme Sur Fdk Editor |
![]() |
|
Group: Member Posts: 414 Joined: 20/05/2006 ![]() Team: Ponies ![]() |
Bonsoir à tous ,
Donc j'ai un petit soucis avec de petit programme de news FDKeditor. j'ai fait mon petit backoffice en faisant une intégration de FDKeditor , sous cette image . http://img40.imageshack.us/i/fdkeditor.jpg/ Voici mon code : <?php include_once("../fckeditor/fckeditor.php") ; ?> <html> <head> <title>FCKeditor - Sample</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> <body> <form action="form.php" method="post"style="margin-right: 1052px;"> <?php $oFCKeditor = new FCKeditor('FCKeditor1') ; $oFCKeditor->BasePath = '../fckeditor/' ; $oFCKeditor->Value = '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ; $oFCKeditor->Create() ; ?> <br> <input type="submit" value="Submit"> </form> </body> </html> Et voila la news final après avoir envoyé : http://img44.imageshack.us/i/newsback.jpg/ <!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" lang="fr"> <head> <title>Calendrier PHP</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" href="form.css" media="all" type="text/css" /> </head> <body> <?php mysql_connect ("localhost", "root", ""); mysql_select_db ("gta"); $sql = mysql_query("select * from news"); if ($sql) { while ($new = mysql_fetch_assoc($sql)) { echo $new['text']; echo $new['date']; echo $new['name']; } } ?> <?php $lanews = $_POST['FCKeditor1']; echo $lanews ?> </body> Donc comme vous l'avez vu , j'arrive pas a faire des espacement entre la date et mon pseudo . Je voudrai savoir comment on fait , pour avoir un text avec une partie de la news et qu'on clique pour avoir la suite . En remerciement. |
|
|
![]() |
![]() |
|
Group: Member Posts: 414 Joined: 20/05/2006 ![]() Team: Ponies ![]() |
Ben au départ j'ai pensé sa benneb vu que sur mon livre php5 m' a donné l'exemple.
Mais helas j'ai 2 fois la même erreurs : Notice: Undefined offset: 1 in C:\wamp\www\GTA\headquarters\form.php on line 74 Je me demande si il y a pas un confli entre 2 boucle : Qui représente le haut de page <?php mysql_connect ("localhost", "root", ""); mysql_select_db ("gta"); $sql = mysql_query("select * from news"); if ($sql) { while ($new = mysql_fetch_assoc($sql)) { $jour = date("d"); $mois = date("m"); $annee = date("Y"); $heure = date("H"); $minute = date("i"); // Maintenant on peut afficher ce qu'on a recueilli echo $new['id']." " .$new['text']. " $jour/$mois/$annee". " " .$new['name']; } } ?> { Et ma deuxieme boucle : <?php $sql = mysql_query("select text,resume from news"); while(list($text,$resume)= mysql_fetch_assoc($sql)) ?> A savoir que mon chan^s est <TexT > et < resume > This post has been edited by kiffenlair: 29/07/2009 - 15:50:29 |
|
|
![]() ![]() |
![]() |
Lo-Fi Version |
Skin © Chapo
|