Re: [PHP] php in css not working with IF's

2001-10-05 Thread Jon Farmer
Budweiser if ( A != 10 or A != 9 ) -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send blank email to [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: [PHP] php in css not working with IF's

2001-10-04 Thread Jason Dulberg
] Subject: RE: [PHP] php in css not working with IF's Ok. Wll show you with an example: if (($site_style!==10) ($site_style!==9) ($site_style!==8)) { } elseif ($site_style==10) { } Should simply be if($site_style != ('10' or '9' or '8')) {} Stop confusing the lad

Re: [PHP] php in css not working with IF's

2001-10-04 Thread David Robley
On Thu, 4 Oct 2001 16:04, Jason Dulberg wrote: Should I stick with if (($site_style!=10) ($site_style!=9) ($site_style!=8)) or if($site_style != ('10' or '9' or '8')) As has been pointed out, that latter won't work. What is the range of possible values for $site_style? If it is 10 or

RE: [PHP] php in css not working with IF's

2001-10-04 Thread Jason Dulberg
To: Jason Dulberg; Rasmus Lerdorf Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] php in css not working with IF's On Thu, 4 Oct 2001 16:04, Jason Dulberg wrote: Should I stick with if (($site_style!=10) ($site_style!=9) ($site_style!=8)) or if($site_style

RE: [PHP] php in css not working with IF's

2001-10-04 Thread Jason Dulberg
I just want to thank everyone who helped me get the css stuff to work. All of the IF statements are now working properly --- I've certainly learned a lot from all the messages. thanks again... Maxim Maletsky Rasmus Lerdorf and all others who responded to my message! __ Jason

[PHP] php in css not working with IF's

2001-10-03 Thread Jason Dulberg
I have a common css file that is being used across several virtual hosts. Basically, what I am trying to do is use the same css file even though several text colors/sizes need to be changed depending on what site/platform its being used on. I have my sql query (retrieves $site_style) in the file

Re: [PHP] php in css not working with IF's

2001-10-03 Thread David Robley
On Thu, 4 Oct 2001 13:49, Jason Dulberg wrote: I have a common css file that is being used across several virtual hosts. Basically, what I am trying to do is use the same css file even though several text colors/sizes need to be changed depending on what site/platform its being used on. I

Re: [PHP] php in css not working with IF's

2001-10-03 Thread Rasmus Lerdorf
if (($BROWSER_PLATFORM == Win) (($site_style!==10) || ($site_style!==9))) { Common logic mistake. if ( A != 10 or A != 9 ) Which value of A would make that logic false? -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: [PHP] php in css not working with IF's

2001-10-03 Thread Jason Dulberg
Thank you for your response. I changed my the code to the method that you suggested. Unfortunately, it still doesn't use the IF's properly. For instance, if I open a $site_style 10, the IF statement for that is the following: elseif (($BROWSER_PLATFORM == Win) ($site_style==10)) {

Re: [PHP] php in css not working with IF's

2001-10-03 Thread Rasmus Lerdorf
Any other problems aside, this is not how you do 'Not Equal'. $site_style!=10 is correct syntax. No, !== is quite valid. It is the non-equality version of === See http://www.php.net/manual/en/language.operators.comparison.php -Rasmus -- PHP General Mailing List (http://www.php.net/)

RE: [PHP] php in css not working with IF's

2001-10-03 Thread Jason Dulberg
- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: October 4, 2001 12:41 AM To: Jason Dulberg Cc: [EMAIL PROTECTED] Subject: Re: [PHP] php in css not working with IF's if (($BROWSER_PLATFORM == Win) (($site_style!==10) || ($site_style!==9))) { Common logic mistake

RE: [PHP] php in css not working with IF's

2001-10-03 Thread Maxim Maletsky \(PHPBeginner.com\)
Maletsky www.PHPBeginner.com -Original Message- From: Jason Dulberg [mailto:[EMAIL PROTECTED]] Sent: giovedì 4 ottobre 2001 6.19 To: [EMAIL PROTECTED] Subject: [PHP] php in css not working with IF's I have a common css file that is being used across several virtual hosts. Basically, what I

RE: [PHP] php in css not working with IF's

2001-10-03 Thread Rasmus Lerdorf
Theoretically, either/or I'm assuming. If A isn't 10 or A isn't 9... But since A cannot be both 9 and 10 at the same time, A will *always* not be one of them. It's exactly the same as saying: if (!(A==9 AND A==10)) Obviously A cannot be both 9 and 10 at the same time so the above will be:

RE: [PHP] php in css not working with IF's

2001-10-03 Thread Jack Dempsey
nice to know demorgan's laws actually show up every now and then ;-) -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 04, 2001 12:58 AM To: Jason Dulberg Cc: [EMAIL PROTECTED] Subject: RE: [PHP] php in css not working with IF's Theoretically

RE: [PHP] php in css not working with IF's

2001-10-03 Thread Maxim Maletsky \(PHPBeginner.com\)
: [PHP] php in css not working with IF's Theoretically, either/or I'm assuming. If A isn't 10 or A isn't 9... But since A cannot be both 9 and 10 at the same time, A will *always* not be one of them. It's exactly the same as saying: if (!(A==9 AND A==10)) Obviously A cannot be both 9 and 10

RE: [PHP] php in css not working with IF's

2001-10-03 Thread Rasmus Lerdorf
in css not working with IF's Theoretically, either/or I'm assuming. If A isn't 10 or A isn't 9... But since A cannot be both 9 and 10 at the same time, A will *always* not be one of them. It's exactly the same as saying: if (!(A==9 AND A==10)) Obviously A cannot be both 9 and 10 at the same

RE: [PHP] php in css not working with IF's

2001-10-03 Thread Maxim Maletsky \(PHPBeginner.com\)
: RE: [PHP] php in css not working with IF's Would make a nice little PHP-GD exercise for someone to build a PHP app that took a boolean logical expression and produced a Venn diagram. Maybe limit it to 3 or less terms to not make your brain explode. -Rasmus On Thu, 4 Oct 2001, Maxim Maletsky

RE: [PHP] php in css not working with IF's

2001-10-03 Thread Maxim Maletsky \(PHPBeginner.com\)
- From: Jack Dempsey [mailto:[EMAIL PROTECTED]] Sent: giovedì 4 ottobre 2001 7.34 To: [EMAIL PROTECTED] Subject: RE: [PHP] php in css not working with IF's i'll start it...will be fun and i've got some coldfusion proponents i'd love to show it to...a little swamped with work though, and monday's my

RE: [PHP] php in css not working with IF's

2001-10-03 Thread Jason Dulberg
Thanks for sticking with me here and for your examples!! So basically, I need to use AND instead of OR. if (($site_style!==10) ($site_style!==9) ($site_style!==8)) { } elseif ($site_style==10) { } hrm... it didn't work. Sorry for being such a dope about this :( Jason Ok, you are

RE: [PHP] php in css not working with IF's

2001-10-03 Thread Jack Dempsey
PROTECTED] Subject: RE: [PHP] php in css not working with IF's Thanks for sticking with me here and for your examples!! So basically, I need to use AND instead of OR. if (($site_style!==10) ($site_style!==9) ($site_style!==8)) { } elseif ($site_style==10) { } hrm... it didn't work. Sorry

RE: [PHP] php in css not working with IF's

2001-10-03 Thread Maxim Maletsky \(PHPBeginner.com\)
(PHPBeginner.com) [mailto:[EMAIL PROTECTED]] Sent: giovedì 4 ottobre 2001 7.56 To: 'Jason Dulberg'; 'Rasmus Lerdorf' Cc: [EMAIL PROTECTED] Subject: RE: [PHP] php in css not working with IF's Jason, are not a dope As mentioned to you by Rasmus: just move those !== off the script replacing them

Re: [PHP] php in css not working with IF's

2001-10-03 Thread David Robley
On Thu, 4 Oct 2001 15:25, Maxim Maletsky \(PHPBeginner.com\) wrote: Jason, are not a dope As mentioned to you by Rasmus: just move those !== off the script replacing them with != That is what causes your error. Maxim Maletsky www.PHPBeginner.com No, that was Rasmus telling _me_ that

RE: [PHP] php in css not working with IF's

2001-10-03 Thread Rasmus Lerdorf
Ok. Wll show you with an example: if (($site_style!==10) ($site_style!==9) ($site_style!==8)) { } elseif ($site_style==10) { } Should simply be if($site_style != ('10' or '9' or '8')) {} Stop confusing the lad. That obviously won't work. -Rasmus -- PHP General Mailing List

Re: [PHP] php in css not working with IF's

2001-10-03 Thread Naintara Jain
, 2001 11:12 AM Subject: RE: [PHP] php in css not working with IF's Thanks for sticking with me here and for your examples!! So basically, I need to use AND instead of OR. if (($site_style!==10) ($site_style!==9) ($site_style!==8)) { } elseif ($site_style==10) { } hrm... it didn't work