sql syntax error - preCharge Forums
It shows that you are unregistered. Please register with us by clicking Here
preCharge Forums


Nav Green LeftNav Right
preCharge Forums > Website Design & Development > Programming > PHP » sql syntax error


Reply
Tcat Right
 
LinkBack Thread Tools Display Modes Tcat Right
Old 10-07-2006   #1 (permalink)
tychicus
Senior Member
 
tychicus's Avatar
 
Join Date: Aug 2006
Age: 29
Posts: 166
Default sql syntax error

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 'out) as tout from hl_traffic where listing_id = 3 and date + interval 7 day > no' at line 1

anybody knows how to check the error and what is the error?
tychicus is offline   Reply With Quote


Old 10-07-2006   #2 (permalink)
shavei7
Senior Member
 
shavei7's Avatar
 
Join Date: Jul 2006
Location: Redmond, WA
Posts: 1,064
Default Re: sql syntax error

it would help if you would right the whole SQL statement that you were trying to run
__________________
NOSH1T/LOSTGIRLWONDERINGV4
the only real mistake is the one from which we learn nothing (John Powell)
shavei7 is offline   Reply With Quote

Old 10-07-2006   #3 (permalink)
tychicus
Senior Member
 
tychicus's Avatar
 
Join Date: Aug 2006
Age: 29
Posts: 166
Default Re: sql syntax error

Quote:
Originally Posted by shavei7 View Post
it would help if you would right the whole SQL statement that you were trying to run
Can you please guild me how to do that? thanks
tychicus is offline   Reply With Quote

Old 10-07-2006   #4 (permalink)
Ajay
Senior Member
 
Ajay's Avatar
 
Join Date: Aug 2006
Age: 26
Posts: 755
Default Re: sql syntax error

Which page are getting the error etc would help.

We cant really figure out a solution with no adequate data.
__________________
Ajay D'Souza

Techtites - Your daily dose of all things Tech!

Sir Arthur Conan Doyle | I Sent This

WebberZone Domains
Ajay is offline   Reply With Quote

Old 10-08-2006   #5 (permalink)
tychicus
Senior Member
 
tychicus's Avatar
 
Join Date: Aug 2006
Age: 29
Posts: 166
Default Re: sql syntax error

Error

SQL query: Documentation

SELECT *
FROM `hl_listings`
WHERE 1 `id`
LIMIT 0 , 30

MySQL said: Documentation
#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 'id`
LIMIT 0, 30' at line 1
tychicus is offline   Reply With Quote

Old 10-08-2006   #6 (permalink)
tychicus
Senior Member
 
tychicus's Avatar
 
Join Date: Aug 2006
Age: 29
Posts: 166
Default Re: sql syntax error

is this help?
tychicus is offline   Reply With Quote

Old 10-08-2006   #7 (permalink)
Ajay
Senior Member
 
Ajay's Avatar
 
Join Date: Aug 2006
Age: 26
Posts: 755
Default Re: sql syntax error

The syntax is all wrong, what exactly are you trying to search?

PHP Code:
SELECT *
FROM `hl_listings`
WHERE `id` = 'something'
LIMIT 0 30 
would be sample code.
It will find all rows in hl_listings whose id = 'something'
__________________
Ajay D'Souza

Techtites - Your daily dose of all things Tech!

Sir Arthur Conan Doyle | I Sent This

WebberZone Domains
Ajay is offline   Reply With Quote

Old 10-12-2006   #8 (permalink)
ScottHughes
Senior Member
 
Join Date: Sep 2006
Age: 22
Posts: 460
Default Re: sql syntax error

Could the problem be the smart quotes? I've never used smart quotes in SQL. Can SQL read the smart qutoes?
__________________
ScottHughes is offline   Reply With Quote

Reply



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

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

vB 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
What HTTP error is generated when there is an error in an ASP page? agaba175 ASP 0 08-05-2006 08:25 PM
Incorrect syntax near ')'. cade ASP 2 07-13-2006 04:16 PM


footer left
All times are GMT. The time now is 08:10 PM.

DISCLAIMER: preCharge Risk Management is not responsible for any opinions, advice or comments expressed on the preCharge Community Forums.
preCharge® is a registered trademark of preCharge Risk Management | chargeback protection | Merchant Account Blog

Powered by vBulletin
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC6

Free Ringtones | The eBay Song | Debt Consolidation | Property in Morocco | Loans

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49