Brian E Boothe wrote:
> yipppieee   look what i have on another PHP Code im trying to run and 
> debug :
> 

I just went through the same thing with my project. When I uploaded my
code to my new hosting service I ran into notices all over the place.
The only way to fix them is to cleanup all your code. I checked php.net
and the recommended way is to check if a variable is set.

This will not create an error if $_POST['User_ID_filter'] does not exist.
if( isset($_POST['User_ID_filter']) ) {
        $User_ID_filter = addslashes($_POST['User_ID_filter']);
} else {
        $User_ID_filter = Null;
}


Or this for a database query:
if( isset($EmailContact) ) {
$sql = "update $TableConfig set config_value='$EmailContact' where
config_name='EmailContact'";
$res = mysql_query( $sql, $conn);
}


No need for special error functions since there will not be any errors
once the above is implemented.

Reply via email to