hello all
i have a small problem
i use FCK editor in my blog beside using smarty engine
but when submitting the form it dosent save to my database
i made a small test
[code]
<form method="post" action="process_send.php" >
<input type="text" name="name" id="name" />
<input type="text" name="title" id="title" />
<div class="wysiwyg">
{wysiwyg name='content' value=''}
</div>
<input type="submit" name="send" value="send" />
</form>
[code]
to determine if the editor works well
its print the values of "name" and "message" well espicially the content of fck with all its colors and styles
put it denies to save on mysql database
the connection to it is tested and its work
i dont know where is the proplem ??!
can any one help ?!!!
thx alot
i have a small problem
i use FCK editor in my blog beside using smarty engine
but when submitting the form it dosent save to my database
i made a small test
<?php include ("mysql.class.php") ; $db = new MYSQL('localhost','root',NULL,'test') ; $success = $db->query("INSERT INTO `test` (`name`,`Message`) VALUES( '$_POST[name]','$_POST[content]')"); //content is the name of FCK field echo $_POST[name] . "" . $_POST[content] ; ?>
[code]
<form method="post" action="process_send.php" >
<input type="text" name="name" id="name" />
<input type="text" name="title" id="title" />
<div class="wysiwyg">
{wysiwyg name='content' value=''}
</div>
<input type="submit" name="send" value="send" />
</form>
[code]
to determine if the editor works well
its print the values of "name" and "message" well espicially the content of fck with all its colors and styles
put it denies to save on mysql database
the connection to it is tested and its work
i dont know where is the proplem ??!
can any one help ?!!!
thx alot
Re: help with fck and mysql
Re: help with fck and mysql
i think it works
thx man
i develope a code that can do insertion query in DB without the need to set first an id=1 field befor inserting the data from fck and works with smarty template engine too
if it possible if i can share it here ??