Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Limiting returned results from MySQL - LIMIT 0,50 dont work
Old 04-19-2011, 01:04 PM Limiting returned results from MySQL - LIMIT 0,50 dont work
Junior Talker

Posts: 1
Trades: 0
Hi

Last 2-3 days I am trying to figure out how I can adjust one line of my code to return only last 50 results and to put the element into table/div with fixed height.

I want first 10 records to be visible on first look,others to be below - simple scroll down.

However I tried with LIMIT 0,50 but something its not okay.This is my base line of code.I guess for someone this is ridiculous question but its bothering me a lot ...

PHP Code:
$buildcontent .= displaylistings ($mintitle'WHERE listingstatus=\'Z\' ORDER BY featured DESC, enddate ASC'); 
Also after limitation I cant figure out how I can achieve the effect with scrolldown.Can you give me some quick tips ?

Thanks for attention
tlife is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-19-2011, 03:15 PM Re: Limiting returned results from MySQL - LIMIT 0,50 dont work
Novice Talker

Posts: 9
Name: Rahul Parkar
Trades: 0
Try this for your MySQL limit...

Code:
SELECT xxx FROM xxx WHERE xxx LIMIT 50
rahulp959 is offline
Reply With Quote
View Public Profile
 
Old 04-19-2011, 03:44 PM Re: Limiting returned results from MySQL - LIMIT 0,50 dont work
Extreme Talker

Posts: 246
Trades: 0
You can order it in reverse and grab Top 50. (Top clause)
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
stbuchok is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Limiting returned results from MySQL - LIMIT 0,50 dont work
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11397 seconds with 12 queries