I am trying to display data in an ordered list with pagination in php. It is working fine on page one but on next page, the list starts again from 1 instead of continuing from p
Just add start="$offset" to your echo "<ol>"; line.
start="$offset"
echo "<ol>";
echo "<ol start='$offset'>";