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 August 30th, 2005, 09:18 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Jul 2005
Posts: 53
SQL Error

I have received these emails reporting SQL errors. Please help ...

Email, error 1:

An error was encountered during execution of the query:

INSERT INTO pp_users (userid,solditems) values(,1)

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 '1)' at line 1

Email, error 2:

An error was encountered during execution of the query:

UPDATE pp_stats SET amt_sold=(amt_sold+), ads_sold=(ads_sold+1) WHERE id=1

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 '), ads_sold=(ads_sold+1) WHERE id=1' at line 1

Email, error 3:

An error was encountered during execution of the query:

SELECT solditems FROM pp_users WHERE userid= LIMIT 1

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 'LIMIT 1' at line 1
prodigy is offline   Reply With Quote
Old August 31st, 2005, 09:55 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
number 1

This is in editproduct and is tied in with number 3 below

Code:
Content visible to verified customers only.
number 2

I dont see an issue here unless the price is empty in your classifieds table

$query = "UPDATE {$Globals['pp_db_prefix']}stats SET amt_sold=(amt_sold+$curprice), ads_sold=(ads_sold+1) WHERE id=1";

number 3

I again dont see how you would get an error unless the userid was empty for this product. This is in editproduct.php and here is the code. I have bolded the userid so it is there.

Code:
Content visible to verified customers only.

I guess one suggestion I would make would be to encapsulate in the queries $thisuser to say '$thisuser' so it does not throw an error in email but I wonder why the userid variable coming from the database would be EMPTY. You follow me here. Most of the errors your reporting is we grab the userid from the database for the product in question and issue an UPDATE OR INSERT on the variables we define from the query.
__________________
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
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
SQL Error digitalpoint Bugs - vBulletin 3.5.X 2 July 24th, 2005 09:21 PM
pp 5.1.1 sql error Fenriz Photopost Pro Bug Reports 5 June 11th, 2005 11:36 AM
SQL Error iphoto Photopost Pro Installation & Upgrades 1 November 12th, 2004 07:49 PM
SQL Error kevinrstruck Photopost Pro Installation & Upgrades 9 October 24th, 2004 08:44 AM


All times are GMT -5. The time now is 06:21 PM.

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