I have a session array containing lessonid, lesson name and description.
<?php
include "db.php";
$_SESSION['lesson_ids'];
?>
<table>
<tr><td>Lesson name </td> <td> description </td></tr>
<tr><td><input type="button" name="next" value="next">
</table>
In that session array, I have 3 sets of data. I want to display one lesson in the current page.
When I click next the button, I need to display the next one.
How can this be done?