<?global $NOSORT;$NOSORT=1;$pid=$_SESSION[`ProjectId`];if ($pid=="") $pid=0;if (ShowQueryResultScalar("select count(*) from GuestBook where ProjectId=$pid")==0)   echo "No guestbook entries for " , ShowQueryResultScalar("select ProjectName from Projects where ProjectId=$pid");else   ShowQueryResult("select * from GuestBook where ProjectId=$pid");?>