are you able to change line 96 to
$rows=mysql_fetch_array($result) or die(mysql_error());
then post the error please.. it works for me, so i don't know sorry... but will try and help out =)