https://www.17buddies.rocks/index.html

17's Buddies Maps HL1 Maps HL2 Wads Plan des Maps
17 Buddies
Only for stats

Welcome Guest ( Log In | Register )

Probleme Sur Fdk Editor
kiffenlair
post 27/07/2009 - 21:15:10 |   Post #1
+Reply

Group: Member
Posts: 414
Joined: 20/05/2006

fr 
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.
Post PM
Website
Go to the top of the page
 
New
Replies
Chapo
post 29/07/2009 - 20:53:28 |   Post #2
+Reply

Group: 17 Buddies
Posts: 18 534
Joined: 27/12/2003

fr 

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)
Post PM
Website
Go to the top of the page

Posts in this topic
- kiffenlair   Probleme Sur Fdk Editor   27/07/2009 - 21:15:10
- - benneb   Citation (kiffenlair @ 27/07/2009 - 22...   27/07/2009 - 21:39:20
- - kiffenlair   Gros merci Chef !!!!! Gros Bis...   27/07/2009 - 22:13:01
- - kiffenlair   Apparament le while ne marche pas , j'ai corri...   29/07/2009 - 13:12:31
- - benneb   le mieux est de choisir les champs récupérés di...   29/07/2009 - 13:23:18
- - kiffenlair   Ben au départ j'ai pensé sa benneb vu que su...   29/07/2009 - 15:48:57
- - Chapo   C'est laquelle ta ligne 74 ?   29/07/2009 - 17:32:14
- - kiffenlair   pardon suis bete : while(list($text,$re...   29/07/2009 - 18:20:31
- - Chapo_Test   Comme ça brutalement je dirais que c'est le n...   29/07/2009 - 18:29:29
- - kiffenlair   ben d'apres ma table c'est bien resume. h...   29/07/2009 - 19:31:54
- - Chapo   Dans ces cas là, essaye de faire tests et des ...   29/07/2009 - 20:53:28
- - kiffenlair   oki je vais sa desuite http://img43.imageshack.us...   29/07/2009 - 20:55:58
|- - Chapo   Citation (kiffenlair @ 29/07/2009 - 21...   29/07/2009 - 21:45:08
- - benneb   resume, ca doit être un mot clé php, donc renomm...   29/07/2009 - 21:17:18
- - kiffenlair   oki je fait idee de Mon Dieu Chéri D'Amour , ...   29/07/2009 - 21:23:01
- - kiffenlair   Excuse moi chapo . j'ai du mal m'expliqué...   29/07/2009 - 21:54:36
- - Chapo   Je n'ai jamais utilisé la fonction mysql_fetc...   29/07/2009 - 23:02:02
- - kiffenlair   Excuse moi chapo , mais je connais pas strip_slash...   30/07/2009 - 00:06:07
- - Chapo   En fait je sais d'où vient ton probleme de ...   30/07/2009 - 07:02:25
- - kiffenlair   Je viens de faire ce que tu m'as dit chapeau ,...   30/07/2009 - 13:13:46
- - Chapo   Ouais ben là je vois pas J'utilise jamais m...   30/07/2009 - 13:51:39
- - kiffenlair   C'est pas grave chapo , car avec ce code la sa...   30/07/2009 - 16:49:45
- - kiffenlair   Bon evidement , le Javascript je le deteste !...   30/07/2009 - 19:39:14
- - benneb   là tu es complètement à l'ouest niveau coda...   30/07/2009 - 20:37:42
- - kiffenlair   merci Mon Dieu Chéri D'Amour , mais je te dis...   31/07/2009 - 17:30:11

2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

New
 


RSS Lo-Fi Version
 
Skin © Chapo