View Single Post
Old 05-24-2005   #3 (permalink)
ParaSnake
Invicible Snake
 
ParaSnake's Avatar
 
Join Date: Sep 2004
Location: Ho Chi Minh City,Vietnam
Posts: 668

Send a message via MSN to ParaSnake Send a message via Yahoo to ParaSnake
Sorry for double post(for real,i do this to increase my post,who know?),but i remembered that my tut is used for plain txt database.
so i will give u a example,u can code ones base on this:
PHP Code:
//do some mysql conenct here
$a=mysql_query("SELECT * FROM tablename limit('".$begin."','".$end."') "); 
see the "limit" ?what it does is to limit the record that queried from the query $a.
for example i have these in my database name :
num - name
1 - scott
2 - bill
3 - sam
4 - peter
5 - george
so if i query it and i limit(2,3)
the return value will be bill,sam and peter.
so all you have to do is increse or decrease the variables $begin adn $end.
__________________
ParaSnake is offline