php-general Digest 17 Sep 2013 19:38:29 -0000 Issue 8365

Topics (messages 322075 through 322075):

Resolving a PHP Notice Error
        322075 by: Ron Piggott

Administrivia:

To subscribe to the digest, e-mail:
        php-general-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-general-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-gene...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
I am wanting to establish a default sort by preference when the user hasn’t 
specified one.  I setup to test this with:

<?php

if ( !is_set( $sort_by_preference ) ) {

    $sort_by_preference = "government_wording";

}

?>

But I am receiving a Notice error:

Notice:  Undefined variable: sort_by_preference in GIFI_codes.php on line 11- 
Line 11 is “if ( !is_set( $sort_by_preference ) ) {“What is the correct way to 
test this without triggering a Notice error?Ron
Ron Piggott



www.TheVerseOfTheDay.info 

--- End Message ---

Reply via email to