View Single Post
ישן 10-03-08, 22:18   # 6
4ior
חבר וותיק
 
4ior's Avatar
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
הודעות: 1,451

4ior לא מחובר  

גבר אולי לפני שאתה שואל אותנו תנסה לפתור לבד?

קח קוד מתוקן:
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>";
}
?>
  Reply With Quote