Hi, I have got a problem.
I'm Using ckeditor in jTable.org
I have got 1 field in my table (news content field - a big one).
I have managed to use ckeditor for adding/editing it:
content: { type: 'textarea', title: 'Content', width: '70%', inputClass: 'newsContentClass', display: function (data) { var str = data.record.content; str = str.substr(0,200)+"..."; return str; } }, formCreated: function(event, data) { CKEDITOR.replaceAll( 'newsContentClass' ); }
when Im trying to POST it to my database :
$result = mysql_query("UPDATE news SET title = '" . $_POST["title"] . "', content = '" . $_POST["content"] . "', date='". $_POST["date"] ."' WHERE id = " . $_POST["id"] . ";");
I'm getting :
Parse error: syntax error, unexpected T_STRING in ...\wrb!\php\createNews.php on line 8
And my POST looks like
author asfdsaffsaafs
content
date 2013-06-06
title asdasd
content is empty...
When i try to edit it goes wihtout any errors but never changes the value of content - other fields work fine so this is not PHP connection or DB problem. Pls Help )
Can get value from editor
The ASPx Grid View control does not allow getting values from default column editors on the server.The editor using the textarea value. The textarea is also available server-side for postbacks.
lån penge