hi I try to get data from my database but my textarea stays empty. Pls help me solve it.
<?php if($_SESSION['id'] != 1) { echo "You have no authorization"; echo "<hr>"; echo "You are not a superadmin"; } else { o_menu('Change Home.php','500','left'); echo "<form action=\"index.php?module=change_home_process\" method=\"post\">"; include("../httpdocs/FCKeditor/fckeditor.php"); echo "<table border=\"0\">"; //FCKeditor dbconn(); $arr = mysql_fetch_array(mysql_query("SELECT * FROM parts WHERE partsid = 1")); $oFCKeditor = new FCKeditor ; $oFCKeditor->Value = $arr['text']; $oFCKeditor->CanUpload = true ; // Overrides fck_config.js default configuration $oFCKeditor->CanBrowse = true ; // Overrides fck_config.js default configuration $oFCKeditor->CreateFCKeditor( 'text', '640', 400 ) ; //Text Var echo "</textarea></td></tr>"; echo "</table>"; echo "</form>"; space(); echo "<input type=\"button\" onclick=\"history.go(-1)\" value=\"Go Back\">"; c_menu(); } ?>
RE: get data from mysgl
<script language="javascript">
<!--
var oFCKeditor
oFCKeditor = new FCKeditor('description') ;
oFCKeditor.BasePath = '' ; // '/FCKeditor/' is the default value so this line could be deleted.
oFCKeditor.Value = '<?php echo $HTTP_POST_VARS['description']; ?>' ;