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 > PhotoPost Classifieds Support > Classifieds Bug Reports

Classifieds Bug Reports Post any problems you may be having with Classifieds here.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old May 19th, 2005, 03:27 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Jul 2004
Posts: 105
MySQL error

Quote:
INSERT INTO class_comments (id,username,userid,date,comment,product,cat,approved,ipaddress) values(NULL,'zztrent',5185,1116531888,'all gone',522,,'0','24.209.81.204')

The query returned with an errorcode of:

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 ''0','24.209.81.204')' at line 1
Sorry, but since I need to manually update my system, I guess I'm going to need the specific patches as I run into the errors.
Rich Z is offline   Reply With Quote
Old May 19th, 2005, 04:13 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,683
Rich

Look at your comments.php and tell me what you see based on what I post here. I see no issue that I can find on this.

Lines 60-62 of comments.php are this which grabs the cat variable which your query is missing
Code:
Content visible to verified customers only.
Then at around line 166 we insert the comment into the database

Code:
Content visible to verified customers only.
Let me know if your code varies from this as all I can do is look at the code we have now. I do not have earlier versions to look at.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old May 21st, 2005, 11:21 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Jul 2004
Posts: 105
Here's the lines 60-63:
Code:
Content visible to verified customers only.
Then line #166 is
Code:
Content visible to verified customers only.
Hmm, they look the same to me, but obviously I am getting a MySQL error.
Rich Z is offline   Reply With Quote
Old May 22nd, 2005, 01:19 AM   #4 (permalink)
Registered User
 
Join Date: Apr 2005
Posts: 148
Looks like the query doesn't return anything so $thiscat is empty.
Frost is offline   Reply With Quote
Old May 22nd, 2005, 10:58 AM   #5 (permalink)
Member
Verified Customer
 
Join Date: Jul 2004
Posts: 105
Well, I get SOME error about once a day, it seems.

Just got this one a few minutes ago:

Quote:
An error was encountered during execution of the query:

INSERT INTO class_products (id,user,userid,cat,date,title,description,keywords,bigimage,bigimage2,bigimage3,approved,watermarked,ipaddress)
values(NULL,'themselves', 17876, , 1116774887, '2 Adult Female Southern Flying Squirrels', '', '', '', '', '',
1, '', '24.158.212.63')

The query returned with an errorcode of:

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 ' 1116774887, '2 Adult Female Southern Flying Squirrels', '', ''
Rich Z is offline   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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL error... Rich Z Photopost Pro Bug Reports 1 August 29th, 2005 09:29 PM
HELP! MySQL error scrap32 Photopost Pro Installation & Upgrades 1 November 15th, 2004 12:18 PM
MySQL error orangeflea Photopost Pro Installation & Upgrades 4 September 24th, 2004 07:04 AM


All times are GMT -5. The time now is 05:54 PM.

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