SQL error by googlebot
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexAdd-Ons & Blocks
Author Message
dadki
Heavy poster


Joined: Dec 17, 2007
Posts: 158

PostPost subject: SQL error by googlebot
Posted: Sat Apr 10, 2010 10:32 pm
Reply with quote

Can you help / explain to me why I get this error here often?


Code:
On /Jokes/mode=next/jid=2295/cid=7/ad=desc.html
While executing query "SELECT * FROM cms_jokes_jokes WHERE cid=7 AND active=1 ORDER BY desc, jid desc"
the following error occured: 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 'desc, jid desc' at line 1

In: /home/myhost/domains/mydomain.com/public_html/modules/Jokes/index.php on line: 215

Guest information:
User id:
Username:
Admin: No
IP: 66.249.##.###
Host: crawl-66-249-65-111.googlebot.com


dadki's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
xp/2.0.1/5.0.45/4.4.7/9.2
Back to top
View user's profile
greenday2k
Forum Admin


Joined: Aug 11, 2005
Posts: 484
Location: CO

PostPost subject: Re: SQL error by googlebot
Posted: Sun Apr 11, 2010 3:31 am
Reply with quote

ORDER BY ????? desc, jid desc

MYSQL thinks that you´re trying to sort something.

Your need a parameter or a valid column name to sort.

Maybe that function works only with registred users, try to replicate it with out logging.

Declare a default value for the first parameter (if no defined)

_________________
www.greenday2k.net



greenday2k's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website MSN Messenger Yahoo Messenger
dadki
Heavy poster


Joined: Dec 17, 2007
Posts: 158

PostPost subject: Re: SQL error by googlebot
Posted: Fri Apr 16, 2010 7:53 pm
Reply with quote

greenday2k wrote:
ORDER BY ????? desc, jid desc

MYSQL thinks that you´re trying to sort something.

Your need a parameter or a valid column name to sort.

Maybe that function works only with registred users, try to replicate it with out logging.

Declare a default value for the first parameter (if no defined)

Content (text) which is in the module appears to also unregistered user .. only thing you have to be registered to comment


dadki's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
xp/2.0.1/5.0.45/4.4.7/9.2
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexAdd-Ons & Blocks All times are GMT
Page 1 of 1


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

stopsoftwarepatents.eu petition banner
User Info [x]

Welcome Anonymous

Nickname
Password
(Register)

Last CVS commits [x]

Languages [x]

Community [x]

Support for DragonflyCMS in a other languages:

Deutsch
Español

X-links [x]
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

Preview theme [x]
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.


You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
This page generated in 0.4512 seconds with 19 DB Queries in 0.07 seconds
Memory Usage: 2.87 MB
Interactive software released under GNU GPL, Code Credits, Privacy Policy