um, few things
a - you won\'t have $newlist as it isn\'t set b - $newlist will change for each visit, dunno if its ment to or not
and just a minor thing
<?php print($newlist); ?>
could be
<?=$newlist;?>
nothing to really worry about, saves byte size\'s ;)
besides that ;) not bad