The only thing I would suggest, for portability's sake, is to refrain from using <? ?> tags. I realize it's nice to use shortcuts like:
<?=$result?>
Instead, just use
<?php echo $result;?>
It really isn't that much extra typing, and it's a good habit to always use <?php ?>.