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 co

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 Dul

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

2001-10-04 Thread Jason Dulberg
2001 2:48 AM > 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_styl

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

2001-10-03 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?

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

2001-10-03 Thread Jason Dulberg
ing included with the css src already in them) - do not need to use require() in styles.php Thanks to everyone for all the suggestions!! :) Jason > -Original Message- > From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] > Sent: October 4, 2001 2:09 AM > To: Maxim Maletsky (PHPBegin

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

2001-10-03 Thread Naintara Jain
D]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, October 04, 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_sty

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

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

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

2001-10-03 Thread Maxim Maletsky \(PHPBeginner.com\)
} Bla bla bla Maxim Maletsky www.PHPBeginner.com -Original Message- From: Maxim Maletsky (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 wo

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

2001-10-03 Thread Maxim Maletsky \(PHPBeginner.com\)
To: Rasmus Lerdorf Cc: [EMAIL 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") && ($si

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

2001-10-03 Thread Jack Dempsey
EMAIL 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")) {

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 > O

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

2001-10-03 Thread Maxim Maletsky \(PHPBeginner.com\)
riginal Message- 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 swa

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

2001-10-03 Thread Jack Dempsey
in no time... jack -Original Message- From: Maxim Maletsky (PHPBeginner.com) [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 04, 2001 1:24 AM To: 'Rasmus Lerdorf' Cc: 'Jason Dulberg'; [EMAIL PROTECTED] Subject: RE: [PHP] php in css not working with IF's Do you w

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

2001-10-03 Thread Maxim Maletsky \(PHPBeginner.com\)
TECTED] Subject: 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

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

2001-10-03 Thread Rasmus Lerdorf
Dulberg > Cc: [EMAIL PROTECTED] > Subject: RE: [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

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

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 >

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 Maxim Maletsky \(PHPBeginner.com\)
Without following your logic I can give an example of how style sheets on PHPBeginner.com work: In the page we have And in the styles.php we have all the possible DB connections, browser checks by (PHP SNIFF) and so and so on. You cold even try to call the class this way with Get: That

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

2001-10-03 Thread Jason Dulberg
s.net > -Original Message- > 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

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

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
> 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 add

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. >