1
courex
webphoto 2.11
  • 2010/3/31 2:16

  • courex

  • Just popping in

  • Posts: 1

  • Since: 2010/3/31


I just installed the program Webphoto (2.11), after the update 2.4.4 Xoops, but an internal error prevents me from using it. I watched all the parameters of the database but I can not locate the source.

Here is the problematic line: SELECT COUNT (*) FROM WHERE 9b456_webphoto_item: limit = 0: offset = 0

Can you tell me how I can correct?

Thank you in advance.

2
ghia
Re: webphoto 2.11
  • 2010/3/31 5:52

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Quote:
SELECT COUNT (*) FROM WHERE 9b456_webphoto_item: limit = 0: offset = 0
This syntax is not correct. There should be no = or : .
And the WHERE should come after the tablename, togheter with an expression.
When you limit to 0 records, you don't get any!
Correct is (retrieving eg the first 10 records):
SELECT COUNT (*) FROM xoops_webphoto_item LIMIT 0, 10
or
SELECT COUNT (*) FROM xoops_webphoto_item LIMIT 10 OFFSET 0
or with a WHERE clause for eg selecting a category id 2:
SELECT COUNT (*) FROM xoops_webphoto_item WHERE catid = 2 LIMIT 0, 10
Seems somewhere the SQL request is wrong assembled.

Login

Who's Online

381 user(s) are online (245 user(s) are browsing Support Forums)


Members: 0


Guests: 381


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits