Adult ADHD - Debt Consolidation - Wordpress Themes - Credit Cards - Debt Consolidation

PDA

View Full Version : Quick question


phelixx
Dec 17th 2007, 11:58 pm
Would anyone have any idea what is prventing this query from being inserted into mysql? I am trying to insert html into a mysql database. I am running these commands around the contents:

$content = $_POST['FCKeditor1'];
$content = htmlspecialchars($content);

and this is the query that it shows when doing a view source.

insert into front ('content','title','thedate') values ('<p> </p>
<table cellspacing=\"1\" cellpadding=\"1\" width=\"200\" border=\"1\">
<tbody>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</tbody>
</table>','rterte','1197964757')


Thanks.

WeBuster
Dec 18th 2007, 1:51 am
You dont need the htmlspecialchars, I think FCKeditor doing it for you.

phelixx
Dec 18th 2007, 1:53 am
I just figured out my problem. Very stupid mistake of me but in the insert statement before the values I should not be putting ' ' around the items. Thanks for the help though.