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: 17 Buddies Posts: 18 535 Joined: 27/12/2003 ![]() ![]() Team: Dev. 17b ![]() |
Dans ces cas là, essaye de faire tests et des "echo" aux endroits stratégiques de ton code pour afficher tes valeurs intermédiaires, voir ou ça merde.
Par exemple, moi je ferais plutot un truc de ce style: Code if ($sql = mysql_query("select text,resume from news")) { while ($valeur=mysql_fetch_object($sql)) { $text = $valeur->text; $resume=$valeur->resume; echo "Text = ".$text."<br />"; echo "Res = ".$resume."<br />"; } mysql_free_result($sql); } else { echo "probleme sur query <br />"; } Deja, avec ça tu vas voir où ça merde (IMG:http://forum.17buddies.rocks/style_emoticons/default/icon_oui.gif) |
|
|
![]() ![]() |
![]() |
Lo-Fi Version |
Skin © Chapo
|