conditional testing - help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wizardry
    New Member
    • Jan 2009
    • 201

    conditional testing - help

    hello -

    im trying to conditional test these two objects.

    purpose to check if $F_Id is equal to the list id.

    $fid is a variable set.


    Code:
    if ( ($Id = 'N') && ($DId = 'Y') ) {
    		
    		
    		$result = @mysql_query($query_list, $list) ;
    		
    		$row = @mysql_fetch_array($result) ;
    			
    			$F_Id = $row['FId'] ;
    		
    		
    			
    			if ($fId != $F_Id) 
    		
    	$GoTo = "Error.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $GoTo .= (strpos($GoTo, '?')) ? "&" : "?";
        $GoTo .= $_SERVER['QUERY_STRING'];
      }
      header(sprintf("Location: %s", $GoTo));
    }
    thanks in advance for your help.
  • wizardry
    New Member
    • Jan 2009
    • 201

    #2
    i've change to elseif but both propertys needed to return if set is true
    so i created a false property as well to resolve what im trying to accomplish.

    could somebody provide a good example?

    thanks, in advance for your help.

    Comment

    Working...