hi!
i want to make a file that when i click on submit button, it sends the text from fckeditor to a field in a mysql database...
could someone tell me how to do it?
thanks
i want to make a file that when i click on submit button, it sends the text from fckeditor to a field in a mysql database...
could someone tell me how to do it?
thanks
RE: writing to a database
Where:
$DocumentInfo = the text in FCKeditor
DocumentInfo = the field in the DB
documents = the mysql table name
$DocumentInfo=addslashes(DocumentInfo);//adds escape character for quotes
$query = "INSERT INTO `documents` (DocumentInfo,) ";
$query .= "VALUES ($DocumentInfo)";
RE: writing to a database
in the fckeditor must be like this?
.....
$oFCKeditor->Value = $DocumentInfo ;
....
my problem now is that i do not know the name of mysql host.. so i do not know if it works fine.. im using XAMPP.
regards
RE: writing to a database
Host: localhost
User : root
and no password