תיקנתי את הקוד אבל עכשיו הוא מציג לי דף ריק
PHP קוד:
<?php
include_once("fckeditor/fckeditor.php") ;
include "connect.php";
$query = mysql_query("SELECT * FROM settings WHERE id=1 ");
while ($row = mysql_fetch_array($query))
{
$title=$row['$title'];
$home=$row['$home'];
$logo=$row['$logo'];
$copyright=$row['$copyright'];
echo "<form action=save.php?id=1 method=post>" ;
echo "title: <input type=text id=title name=title value=$title>" ;
echo "logo: <input type=text id=logo name=logo value=$logo>" ;
echo "<br>text at homepage:" ;
$oFCKeditor = new FCKeditor('home') ;
$oFCKeditor->BasePath = 'fckeditor/' ;
$oFCKeditor->Value = $home ;
$oFCKeditor->Create() ;
echo "<br>copyrights:" ;
$oFCKeditor = new FCKeditor('copyright') ;
$oFCKeditor->BasePath = 'fckeditor/' ;
$oFCKeditor->Value = $copyrights ;
$oFCKeditor->Create() ;
echo "<input type=submit value=send>";
echo "</form>";
}
?>