Hvis jeg har min editor her:
<?php
include_once("fckeditor/fckeditor.php") ;
?>
<html>
<head>
<title>FCKeditor - Sample</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<form action="sendtomysql.php" method="post" target="_blank">
<?php
$oFCKeditor = new FCKeditor('FCKeditor1') ;
$oFCKeditor->BasePath = '/fckeditor/' ;
$oFCKeditor->Value = '<p>This is some <strong>sample text</strong>. You are using <a href="
http://www.fckeditor.net/">FCKeditor</a>.</p>' ;
$oFCKeditor->Create() ;
?>
<br>
<input type="submit" value="Submit">
</form>
</body>
</html>
Hvordan skal min sendtomysql.php så se ud?
Min Database ser ud således: Host: db4free.net:3306 ; brugernavn: kelledesign ; pass er hemmeligt ; database: kelledesign ; og den skal indsættes i en tabel som hedder editor og den ser således ud:
editor (
id INT PRIMARY KEY AUTO_INCREMENT
editor MEDIUMTEXT)