Hi Uma,

     when u make a query, make it for two rows. than show the 1st one,
     and per psot method send the id of the next row to the next
     query.

     $last_id = $_POST["id"];
     
     $result = select id, yourcolumns
     from table
     ...
     limit $last_id, 2

     $secondrow = 1;
     
     while ($row=mysql_fetch_row($result))
     {
           if ($secondrow == 0)
           {
                ##make your button with id

                $button = "<form>\n".
                          "<input type=submit value="next">\n".
                          "<input type=hidden  name="id" value="<?php
                          echo $row[0]; ?>">\n".
                          "</form>\n";
           }
           
           else
           {
                echo "data of the first row";
                $secondrow--;
           }
     }
     
     Mirza [EMAIL PROTECTED]


01.07.2002 08:52


> Hello,

>  Can anyone please clear my doubt...
> Actually i am retrieving the entire record details from the database..I
> want to display 1 row at a time..after clicking a button i want to display
> the next record..after clicking the next button i want to display the 3 
> record and so on..How do i go about with this...


> Thanks & Regards,
> Uma 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to