Hello,
I am working on a project where multiple elements of a page can be edited depending on the users access rights. If they have the proper rights, they get an 'edit' link beside the element which links to the following:
<a href="private/youreditor.php?keepThis=true&TB_iframe=true&height=500&width=550&contentType=2"
In youreditor.php I've added the line:
$contentType=$_GET['contentType'];
and modified the queries to read:
$res = mysql_query("UPDATE fck_data SET data = '".$data."' WHERE id = '".$contentType."'");
$query = mysql_query("SELECT data FROM fck_data WHERE id = '".$contentType."'");
However, when the editor is launched, the text area is empty, rather then reading the content. Am I not allowed to pass another variable to youreditor.php? Any thoughts on how I can accomplish what I would like without having to duplicate the youreditor.php file for each element I want to edit?
Thanks!
I am working on a project where multiple elements of a page can be edited depending on the users access rights. If they have the proper rights, they get an 'edit' link beside the element which links to the following:
<a href="private/youreditor.php?keepThis=true&TB_iframe=true&height=500&width=550&contentType=2"
In youreditor.php I've added the line:
$contentType=$_GET['contentType'];
and modified the queries to read:
$res = mysql_query("UPDATE fck_data SET data = '".$data."' WHERE id = '".$contentType."'");
$query = mysql_query("SELECT data FROM fck_data WHERE id = '".$contentType."'");
However, when the editor is launched, the text area is empty, rather then reading the content. Am I not allowed to pass another variable to youreditor.php? Any thoughts on how I can accomplish what I would like without having to duplicate the youreditor.php file for each element I want to edit?
Thanks!