John, It works...thanks

-----Original Message-----
From: John W. Holmes [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 15, 2002 8:34 PM
To: 'Ben C.'; [EMAIL PROTECTED]
Subject: RE: [PHP] Creating a variable out of a IF statement


> What I want to do is have an IF statement which the results would
create a
> variable.  The IF statement is:
> 
> IF ($car == "BMW" AND $model == "530i") echo ("Price is 35,000
dollars");
> 
> I want the "Price is 35,000 dollars" to be a variable.  Please help
with
> how
> to do this.

if($car == "BMW" && $modle == "530i") { $var = "Price is 35,000
dollars"; }

---John Holmes...




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

Reply via email to