Icy Phoenix

     
 


This forum is locked: you cannot post, reply or edit topics.  This topic is locked: you cannot edit posts or make replies. 
Page 1 of 1
 
 
Reply with quote Download Post 
Post FAP SUPPORT - Problem With Apostrophe In The Comment Section 
 
Whenever there's a apostrophe used in the comment section, I'm getting this error.

SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's so vute')' at line 2

INSERT INTO phpbb_album_comment (comment_id, comment_pic_id, comment_cat_id, comment_user_id, comment_username, comment_user_ip, comment_time, comment_text) VALUES ('3019', '1159', '1', '3', 'cindee317', '437f67d5', '1232403831', 'this is great, she's adorable!')

Line : 1438
File : album_showpage.php

Can anyone help me?
I've already updated my version to the latest Mighty Gorgon Full Album Pack 1.4.1 © 2006.
 



 
tearyiedSend private message  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: Problem With Apostrophe In The Comment Section 
 
You need to add an addslashes:

http://php.net/manual/en/function.addslashes.php

This will solve it.
 



 
sharkattaqSend private message  
Back to topPage bottom
This forum is locked: you cannot post, reply or edit topics.  This topic is locked: you cannot edit posts or make replies.  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events


  

 

  cron