Help for MySQl display

Thread Solved
Reply

Join Date: Sep 2008
Posts: 132
Reputation: rajeesh_rsn is an unknown quantity at this point 
Solved Threads: 0
rajeesh_rsn rajeesh_rsn is offline Offline
Junior Poster

Help for MySQl display

 
0
  #1
Jan 4th, 2009
Hi ,
I want to show content of tables in a database in a PHP page. And I did it successfully. I had around 1500 rows in that table. Now the problem is the PHP page showing all the 1500 rows in a single page.. Please help me to limit this in to 50 or 75....
Please Help me
Regards
Rajeesh
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 276
Reputation: kanaku is on a distinguished road 
Solved Threads: 15
kanaku's Avatar
kanaku kanaku is offline Offline
Posting Whiz in Training

Re: Help for MySQl display

 
0
  #2
Jan 4th, 2009
Hallu again rajeesh! SkyVValker had the same problem about limiting the display. His question was already answered here by DiGSGRL.
If you know ASP, you can save other daniweb members from idiots like me by helping out in this forum.

Visit this thread
if your username starts with one of the following letters: B D F H J L N P R T X Y Z.
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 8
Reputation: php-freelancer has a little shameless behaviour in the past 
Solved Threads: 2
php-freelancer php-freelancer is offline Offline
Newbie Poster

Re: Help for MySQl display

 
0
  #3
Jan 4th, 2009
Hi rajesh

What i think is you might be writing query like this
u r query : select * from tbl_name where ---.

so it is giving u all the rows in table i.e. 1500.

You just need to modify your query
new query : select * from tbl_name where --- limit 50.

This will limit the selected rows to 50 only.


Try it , I think this will solve u r issue
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 132
Reputation: rajeesh_rsn is an unknown quantity at this point 
Solved Threads: 0
rajeesh_rsn rajeesh_rsn is offline Offline
Junior Poster

Re: Help for MySQl display

 
0
  #4
Jan 5th, 2009
Originally Posted by php-freelancer View Post
Hi rajesh

What i think is you might be writing query like this
u r query : select * from tbl_name where ---.

so it is giving u all the rows in table i.e. 1500.

You just need to modify your query
new query : select * from tbl_name where --- limit 50.

This will limit the selected rows to 50 only.


Try it , I think this will solve u r issue


Very Very thanks for the kind support.... I solved the problem .... Once again Thanks
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC