Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

prev/next link pages

Status
Not open for further replies.

paulsam

Programmer
Mar 15, 2001
4
US
hello,

i am creating a search page that shows 1-25 records per page. I want to split the search results:
1 [2] 3 4 5 6 7 8 9 10 <next>
where [2] represents records 26-50 (direct links to remaining pages)

i have found a code for this feature but when i used
variable tablename ($table) )in my query. huh! doesnt work anymore(see below code):

$query = mysql_query(&quot;SELECT * FROM $table WHERE FNAME='$fname' ORDER BY LNAME, FNAME&quot;);

i tried not using the variables & it works. i need to use the variables coz the the design of my php has an authentication. im using their usernames as their table name as well as their search input.

is anyone there can help me.... plss..


army
army@idess.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top