i hav a table called 'student' ...in 'mysql' like

--------------------------------------
stud_id | name | age | address
--------------------------------------
a11 aaa 25 xxxx
b11 bbb 30 yyyy

--------------------------------------
(tis is just a sample table)

in the 'show.php' i ve 4 textboxes to display stud_id,name,age,address.. and having a button called 'next'..

during page load itself the textboxes should display the value of the corresponing field values(ie the FIRST record) frm database...

i ve used the following coding for tat.. like

$result=mysql_query("select * from student",$con) or die(mysql_error);
$fetch=mysql_fetch_row($result);

<input name="stud_id" type="text" size="25" maxlength="15" readonly="true" value="<?php echo $fetch[0]; ?>" >
(tis is for only one text box alone..) and its working properly..

MY DOUBT like wen clicking the next button, how to retrieve the next record frm db and hw to show tat value in text box... (ie hw to dynamically change the value of text box??... anybody send me the coding plz.......