Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 01:26 am EST
Geeklog Forums
1064: error in your SQL syntax near \'\' at line 1
Gildas
Anonymous
I was getting this message when trying to post links and found that it would only happen when I DID NOT put a description for the link.
Of course I could put just a space in but why do that when I can code it in
I cheated of course - the best way to fix it is to check for a null description but I\'m lazy.
I fixed it on my system by modifying link.php so that it adds a SPACE to the description.
// clean \'em up
$description = addslashes (COM_checkHTML (COM_checkWords ($description)));
$description .= \" \";
Add the last line after the first line and save/upload your script change.
14
11
Quote
All times are EST. The time is now 01:26 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content