----- Original Message ----- 
From: Brian Weisenthal <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 24, 2001 1:14 AM
Subject: [PHP-DB] variable if statement


> i want to do something like this:
> 
> $string="($a==1) OR ($b==2)";
> 
> if ($string) { do something ; }
> 
> any ideas? i tried using if (eval($string)) but that just gave me errors.

$string = (($a == 1) OR ($b == 2));


regards
-- 
Jason Wong
Gremlins Associates
www.gremlins.com.hk




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to