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.