PJ wrote:
> Caner Bulut wrote:
>> Hi PJ,
>>
>> You can use the structure following
>>
>> $bid = htmlentities($_GET['id']);
>>
> the code below
>> if(empty($bid) {
>> $bid=0;
>> }
> produces an empty screen with no error messages...
> I have been having some trouble understanding "empty()" -- it doesn't
> seem to want to work for me in any situation

YOU, always need to have error_reporting on and display errors on, and
also be logging errors so that you can see parse errors in the log.
Always check the log after a "empty screen".  I've seen many posts from
you where you get a blank, empty, white screen.  This is most always a
parse error!.  Get an editor that will show you bad syntax like the
above.  It is a freaking parse error because you don't have matched
parentheses!

-- 
Thanks!
-Shawn
http://www.spidean.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to