hello guys, i am a student studying php and sql. I have 20 persons in my database, I already have a query that will display 10 persons order by average in descending, and i want to display the next 10 persons that are not included on the first result.
hope you guys can help me…
here is the code:
[php]<?php
$host = “localhost”;
$user = “root”;
$pass = “”;
$db = “enrolledgrade7”;
mysql_connect($host, $user, $pass);
mysql_select_db($db);
$query = “SELECT * FROM student ORDER BY average DESC”;
$result = mysql_query($query);
$num = mysql_numrows($result);
echo “Section1”;
echo “
StudentID | Name | average |
?>[/php]