PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > ReviewPost Pro Support Forums > ReviewPost Bug Reports

ReviewPost Bug Reports Let us know about any post installation problems you are having with ReviewPost.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old July 18th, 2006, 12:28 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Jul 2006
Posts: 82
Sql error caused by an apostrophe ( ' )

www.rig-talk.com

Tried to submit a "ticket" to you guys, but I don't have permission to do so.

Anyway, when I create a category, and add an "extra field"; if I put an apostrophe in the name "Manufacturer's URL", I get errors when adding subcategories.

Quote:
We're sorry, but the system experienced an unrecoverable error. Please try again later.

Script: adm-misc

Query: INSERT INTO rpost_categories (id,catname,description,catorder,thumbs,parent,header,footer,headtags,password,ugnoview,ugnoupload,ugnoanno, template,extra1,extra2,extra3,extra4,extra5,extra6,sortorder,frames) VALUES(NULL,'Agile','','4','yes',10,'','','', '', '', '', '167,468,604,1,2,3', '0', 'Manufacturer's URL', '', '','', '', '', '2', '')

Result: 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 URL', '', '','', '', '', '2', '')' at line 4

Database handle: Resource id #6
I can remove the apostrophe and it will create subcategories fine after that. I assume this is a bug and I'm wondering what kind of issues it may cause in other parts of the program in the future.
MitchSchaft is offline   Reply With Quote
Old July 18th, 2006, 12:48 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
In adm-misc.php try adding these in bold

Code:
Content visible to verified customers only.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old July 18th, 2006, 01:06 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Jul 2006
Posts: 82
Nah, that didn't do it. Unless I added it wrong, here's the whole string:

Quote:
typecast($_POST, array('catname' => STRING, 'catdesc' => STRING, 'myheader' => STRING, 'delcomments' => STRING, extra1 => STRING, extra2 => STRING, extra3 => STRING, extra4 => STRING, extra5 => STRING, extra6 => STRING,
MitchSchaft is offline   Reply With Quote
Old July 18th, 2006, 03:33 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
It should meaning it should typecast those variables and add a slash I will test it
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL Error cbr929rrerion Installs and Upgrade - vBulletin 3.5.X 3 March 3rd, 2006 02:56 PM
SQL Error Gottcha Photopost Pro Installation & Upgrades 3 October 10th, 2005 08:14 AM
vB3 + PP5.13 - Apostrophe error Rids Photopost Pro Bug Reports 15 August 2nd, 2005 10:48 AM
[RC2] creating category with apostrophe cause mysql error robert_2004 Installs and Upgrade - vBulletin 3.0.X 6 February 9th, 2005 09:18 AM
SQL Error iphoto Photopost Pro Installation & Upgrades 1 November 12th, 2004 07:49 PM


All times are GMT -5. The time now is 12:16 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0