Hi,
It does not work, as you have your equal signs messed up. The single '=' assigns a value to a variable, and returns 'true' when succesfull. YOu need the double ==, which tests for being equal (Read the manual about operators or see my basics tutorials on www.bio-vision.nl/coding.
ABout debugging, and testing the code: Who is to stop you from testing between showing 1 or 2 records? Be creative!
if ($end==30) {
echo( "<td colspan=\"2\"><center><font size=\"1\" face=\"Verdana\">
<a href='$PHP_SELF?e=100'>View 100 Records</a></font></td></tr>" );
}
else // Do not need to test, this is the default
{
echo( "<td colspan=\"2\"><center><font size=\"1\" face=\"Verdana\">
<a href='$PHP_SELF?e=30'>View 30 Records</a></font></td></tr>" );
}
Last but not least: Use stulesheets (CSS) for formatting your output, and remove the font, center etc tags.