im still cracking on with my project, at the moment im trying to get multiple page entries to work.
iv got my main page which has pages setup and working
classserver/examlist.php?page=1
and iv got my exams working (taking the correct exam questions from the first page.
classserver/onlineexam.php?id=1
but now i want to get the onlineexam.php working with multiple pages.
how do i do it so i have
classserver/onlineexam.php?id=1&page=2
what iv got so far for page numbers is...
and for exam id i have...
--------------
Sorry if its confusing, i tried to explain best i could.
iv got my main page which has pages setup and working
classserver/examlist.php?page=1
and iv got my exams working (taking the correct exam questions from the first page.
classserver/onlineexam.php?id=1
but now i want to get the onlineexam.php working with multiple pages.
how do i do it so i have
classserver/onlineexam.php?id=1&page=2
what iv got so far for page numbers is...
PHP:
echo "<a href=\"OnlineExam.php?page=$prev\">Previous Page <span>I</span></a> ";
}
for($i = 1; $i <= $total_pages; $i++)
{ if ($page == $i)
{ echo " $i <span>I</span> ";
}
else
{
echo "<a href=\"OnlineExam.php?page=$i\">$i <span>I</span></a> ";
}
}
if ($page < $total_pages)
{ $next = ($page + 1);
echo "<a href=\"OnlineExam.php?page=$next\"> Next Page</a>";
}
and for exam id i have...
PHP:
<?php echo "<A href='OnlineExam.php?id=$getexams3[examid]'>$getexams3[examname] </a>"
?>
--------------
Sorry if its confusing, i tried to explain best i could.
Last edited: