68 Classifieds Forums  

Go Back   68 Classifieds Forums > v3.1.x Help & Support > v3.1 Questions & Support
Register Projects FAQ Members List Calendar Search Today's Posts Mark Forums Read

v3.1 Questions & Support Help and support for 68 Classifieds v3.1.x

 
Thread Tools Display Modes
  #1  
Old 10-15-2007, 10:54 PM
falcon falcon is offline
Junior Member
 
Join Date: Mar 2006
Posts: 4
Default Error message when clicking on photos

When clicking on the photos of any of the ads at

http://www.australianinvestmentprope...ngs.php?pg=new

to see the large version of the photos these error messages show:

Notice: Query failed: 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 SQL: SELECT id,pid,title,image FROM class_prodimages WHERE id > 0 AND pid = in /home/aip/public_html/includes/classes/database/mysql.php on line 0

Notice: Query failed: 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 SQL: SELECT id,pid,title,image FROM class_prodimages WHERE id < 0 AND pid = in /home/aip/public_html/includes/classes/database/mysql.php on line 0


I am running version 3.1.7 and have already tried replacing the includes/init.php and the includes/classes/database/mysql.php
file with the latest versions from version 3.1.10

but the error messages still show. Please advise.
Reply With Quote
  #2  
Old 10-16-2007, 08:48 AM
Lhotch's Avatar
Lhotch Lhotch is offline
Moderator
 
Join Date: Mar 2006
Posts: 1,725
Default

I think I remember seeing this error posted somewhere here before I will se if I can find it.

On a side note, I really dont recommend updating just one or two files from a newer release without doing the complete upgrade and running the upgrade script. It may work, and you may also totally trash things.
__________________
Larry.
Reply With Quote
  #3  
Old 10-16-2007, 11:19 AM
falcon falcon is offline
Junior Member
 
Join Date: Mar 2006
Posts: 4
Default

Thanks, I replaced the viewlisting.tpl and viewimage.tpl files and its working again now.
Reply With Quote


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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble with photos Kato v3.1 Questions & Support 1 03-23-2007 08:06 AM
Order of photos bearcat v3.0 Questions & Support 3 11-04-2006 06:41 PM
Change button text when adding photos Chad v3.1 Questions & Support 2 10-06-2006 02:20 PM
How do you get customers to load small photos? cherubini v3.1 Questions & Support 11 07-15-2006 12:46 AM
Charging for extra photos Bucketman v3.0 Questions & Support 3 04-04-2006 01:50 PM


All times are GMT -4. The time now is 07:23 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2007, Jelsoft Enterprises Ltd.