Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 28-01-2008, 05:45 PM   #1 (permalink)
~[::BOoYaKa::]~
 
Join Date: May 2005
Location: In a Cave.
Posts: 575
Default PHP Help Needed...


My site use PHP as scripting language... I created a simple search menu to fetch results from the database, and display the results...
It works fine and results are displayed as per the need of the user...
But the problem is that it displays all of the found results on a single page, i want to display 10 results per page, if there are more than 10 results it should automatically create next page link at the bottom...
I am unable to solve this problem... If there are many results, like 100, all of them are displayed on same page and it looks like a mess......
Please can someone help...
Thanx..
__________________
[::Eddie n Benoit Live Forever::]
REY619 is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 28-01-2008, 06:11 PM   #2 (permalink)
हॉर्न ओके प्लीज़
 
victor_rambo's Avatar
 
Join Date: Sep 2007
Posts: 1,493
Default Re: PHP Help Needed...

Use embedded URL to get LIMIT of query.
eg: http://domain.com/search.php?query=STRING&startfrom=11&upto=20
Use IF operator to see if LIMIt varibales are null. If NULL set to 1 and 10.
And for making the embedded URL use loops and manipulate incrementer mathematically.
__________________
विक्टर रॅंबो - चाणकया प्रभावित व्यक्ति

गीक होना माँगता
victor_rambo is offline  
Closed Thread

Bookmarks

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help needed. Things needed to connect SATA HDD to... prashantmaxsteel Hardware Q&A 3 21-11-2007 12:26 PM
Help Needed Dragoniteid2 QnA (read only) 1 19-07-2006 07:29 AM
needed 2 buy a good camera????? help needed.. The Day Walker! Cameras and camcorders 5 02-07-2005 04:43 PM

 
Latest Threads
- by Charan
- by Sarath
- by clmlbx

Advertisement




All times are GMT +5.5. The time now is 12:49 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2