Error 1064 again
cosmin 269
From: -
From: -
Notice
This topic is archived. New comments cannot be posted and votes cannot be cast.Responses to this topic
1 Re: Error 1064 again
cosmin
OP
269
From: -
From: -
Error 1064 again
Thanks.
Thanks.
1 Re: Error 1064 again
Philipp
From: Austria
Administrator
1342From: Austria
Error 1064 again
Look like the "Max. News" setting (under Other/Websites) is empty, after there is no value after LIMIT.
Look like the "Max. News" setting (under Other/Websites) is empty, after there is no value after LIMIT.
1 Re: Error 1064 again
cosmin
OP
269
From: -
From: -
Error 1064 again
Query: SELECT * FROM esselbach_st_stories WHERE story_main = '1' AND story_website = '1' AND story_sticky = '0' AND story_hook = '0' AND story_time < ('2007-03-25 06:34:52') OR story_main = '1' AND story_website = '0' AND story_sticky = '0' AND story_hook = '0' AND story_time < ('2007-03-25 06:34:52') ORDER BY story_time DESC LIMIT
Query: SELECT * FROM esselbach_st_stories WHERE story_main = '1' AND story_website = '1' AND story_sticky = '0' AND story_hook = '0' AND story_time < ('2007-03-25 06:34:52') OR story_main = '1' AND story_website = '0' AND story_sticky = '0' AND story_hook = '0' AND story_time < ('2007-03-25 06:34:52') ORDER BY story_time DESC LIMIT
1 Re: Error 1064 again
Philipp
From: Austria
Administrator
1342From: Austria
Error 1064 again
It would help if I know which query is causing this error
Open core.php and find:
and add the following line:
It would help if I know which query is causing this error
Open core.php and find:
echo "Error: <b>".mysql_errno()." <i>".mysql_error()."</i></b>";
and add the following line:
echo "<br /><br />Query: $var";
I'm embarassed to say I have no idea why this is happening. Maybe a template with a bug in it or something or uploading some messed up php file. I get this error
Error: 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 '' at line 1 on my frontpage. I'm using Esselbach 1.8.2.
Maybe you can help.
www.file-portal.net/index.php