Jump to content

[SOLVED] Syntax Help


ballouta

Recommended Posts

I am working on fck Editor

everything is ok But i am not able to view the default value that i have read from my Database.

 

the original editor syntax is:

 

$oFCKeditor->Value = 'Biography Goes here' ;

 

while i want to make smthg like this:

 

echo " $oFCKeditor->Value= '$row[cont]' ; ";

 

how i can fix the syntax so the value is assigned correctly?

 

thank you

Link to comment
https://forums.phpfreaks.com/topic/154632-solved-syntax-help/
Share on other sites

this post code is correct and it is working,

But i want to read teh old text stored in my database and set it as the default value for the text editor to edit.

 

I want to add the $row[cont] instead of 'text goes here'!

 

this is my full code:

<?php
	include ('../global.inc.php');
	include("../fckeditor/fckeditor.php") ;


	$result = mysql_query ("SELECT * FROM `sections` WHERE `section` = 'biography' AND `lang` = 'E'");
	$row = mysql_fetch_array ($result); 

         echo "<input name='title' type='text' size='28' value='$row[title]' dir='ltr' />
         <input type='hidden' name='language' value='E' />
                  </label>
                  <br />
                <p>Biography Text<br />";

$content = $row[cont];

$oFCKeditor = new FCKeditor('FCKeditor1') ;
$oFCKeditor->BasePath	= '../fckeditor/' ;
$oFCKeditor->Value = 'Text Goes here' ;
$oFCKeditor->Create() ;

		  
		  ?>

<input name="" type="image" src="../images/bt_submit.gif" />
</form>

 

thanks alot

Link to comment
https://forums.phpfreaks.com/topic/154632-solved-syntax-help/#findComment-813149
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.