sitemap  |  contact

Sakic.Net Forum
23 November 2008, 18:21 *
Welcome, Guest. Please login or register.
Did you miss your activation email?
Login with username, password and session length
News: Email Directory goes free: http://www.sakic.net/products/free_products/
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: user defined troubles  (Read 3409 times)
marcps
Newbie
*
Posts: 2


View Profile
« on: 17 May 2007, 10:00 »

I am getting results on who's online examples etc - but cannot get my user defined query to get results.

my query is

select id,action from actionlog where type = 'county' order by `id` desc limit 0,5

this works in sql direct...

This should pull the last 5 counties searched for in my find-a-pro directory.

www.balloonconsultant.co.uk is the web adress.

Marc P Summers
Logged
Saka
Administrator
Hero Member
*****
Posts: 1,294


View Profile WWW
« Reply #1 on: 17 May 2007, 13:22 »

As it says in documentation, don't use LIMIT command, it is added automatically.
So try just:
SELECT id, action FROM actionlog WHERE type='county' ORDER BY id DESC
Logged

marcps
Newbie
*
Posts: 2


View Profile
« Reply #2 on: 18 May 2007, 02:00 »

Thank you for pointing out my silly mistake.  I hope by making a fool of myself will help others Smiley

Marc
Logged
Saka
Administrator
Hero Member
*****
Posts: 1,294


View Profile WWW
« Reply #3 on: 18 May 2007, 05:22 »

No problem, that's what's forum is for.
I did my best to explain everything in PDF documentation but if you are not sure about something just ask.
Logged

Pages: [1]
  Print  
 
Jump to: