[PHP] Php and CSS where to put it

2009-01-12 Thread Terion Miller
I have this code and the css seems to not work in IE at all, do I need to put it somewhere different on the page maybe? link rel=stylesheet type=text/css href=inc/styles.css ?php include 'inc/dbconnOpen.php' ; ini_set('error_reporting', E_ALL); ini_set('display_errors', true); $sql = SELECT

Re: [PHP] Php and CSS where to put it

2009-01-12 Thread Stephen
Terion Miller wrote: I have this code and the css seems to not work in IE at all, do I need to put it somewhere different on the page maybe? link rel=stylesheet type=text/css href=inc/styles.css ?php include 'inc/dbconnOpen.php' ; I don't see the html headers. Nor a body. Get that fixed

Re: [PHP] Php and CSS where to put it

2009-01-12 Thread VamVan
-- link rel=stylesheet type=text/css href=inc/styles.css link rel=stylesheet type=text/css href=inc/styles.css should be placed in between head/head Thanks, V

[PHP] PHP attaching css and JS files to current page

2008-11-30 Thread Alain Roger
Hi, is there a way how a PHP class can attach JS (javascript) and CSS documents to current web page in which the class is instanced ? till now i used an echo which write a script/script code into current document. in this javascript, i used to have a createElement function to attache C\other CSS

Re: [PHP] PHP attaching css and JS files to current page

2008-11-30 Thread Ashley Sheridan
On Sun, 2008-11-30 at 14:23 +0100, Alain Roger wrote: Hi, is there a way how a PHP class can attach JS (javascript) and CSS documents to current web page in which the class is instanced ? till now i used an echo which write a script/script code into current document. in this javascript, i

Re: [PHP] PHP attaching css and JS files to current page

2008-11-30 Thread Alain Roger
In fact my class has for purpose to be used in several projects and therefore, to write the css/js files from the web page using the class would be a mistake in the way that could not be redistributed without missing those files. On Sun, Nov 30, 2008 at 2:55 PM, Ashley Sheridan [EMAIL

Re: [PHP] PHP attaching css and JS files to current page

2008-11-30 Thread Ashley Sheridan
On Sun, 2008-11-30 at 14:55 +0100, Alain Roger wrote: In fact my class has for purpose to be used in several projects and therefore, to write the css/js files from the web page using the class would be a mistake in the way that could not be redistributed without missing those files. On Sun,

Re: [PHP] PHP attaching css and JS files to current page

2008-11-30 Thread Alain Roger
Can you not just write all of the CSS/Javascript that you need right from the get-go in the same place you're writing out your Javascript now? I'm not sure I follow you then. You say you want your class to be able to include those files,

Re: [PHP] PHP attaching css and JS files to current page

2008-11-30 Thread Ashley Sheridan
On Sun, 2008-11-30 at 15:08 +0100, Alain Roger wrote: Can you not just write all of the CSS/Javascript that you need right from the get-go in the same place you're writing out your Javascript now? I'm not sure I follow you then.

Re: [PHP] PHP attaching css and JS files to current page

2008-11-30 Thread Alain Roger
you're right if you want to write them directly in the index.php. but in my case i want the class to do it by itself. On Sun, Nov 30, 2008 at 3:49 PM, Ashley Sheridan [EMAIL PROTECTED]wrote: On Sun, 2008-11-30 at 15:08 +0100, Alain Roger wrote: Can you not just write all of

RE: [PHP] PHP attaching css and JS files to current page

2008-11-30 Thread Alex Chamberlain
Have you considered using some type of templating system, which can use class_exists?? Alex No virus found in this outgoing message. Scanned by AVG Free 8.0 Checked by AVG - http://www.avg.com Version: 8.0.176 / Virus Database: 270.9.11/1820 - Release Date: 29/11/2008 18:52 -- PHP General

Re: [PHP] PHP attaching css and JS files to current page

2008-11-30 Thread Eric Butera
On Sun, Nov 30, 2008 at 8:23 AM, Alain Roger [EMAIL PROTECTED] wrote: Hi, is there a way how a PHP class can attach JS (javascript) and CSS documents to current web page in which the class is instanced ? till now i used an echo which write a script/script code into current document. in this

RE: [PHP] PHP/Dreamweaver CSS issue

2006-04-04 Thread Jay Blanchard
[snip] I am trying to modularize a Web Page using one of Dremweaver's CSSes. It works in Firefox but it falls about in IE. Is IE at fault or the modularization? [/snip] Since it is a CSS issue it is likely IE. I will refer you to a CSS mailing list at css-d@lists.css-discuss.org since this is

[PHP] PHP/Dreamweaver CSS issue

2006-04-03 Thread The Doctor
I am trying to modularize a Web Page using one of Dremweaver's CSSes. It works in Firefox but it falls about in IE. Is IE at fault or the modularization? -- Member - Liberal International This is [EMAIL PROTECTED] Ici [EMAIL PROTECTED] God Queen and country! Beware Anti-Christ rising!

Re: [PHP] PHP/Dreamweaver CSS issue

2006-04-03 Thread Peter Hoskin
Lack of information means no answer for you. More to the point, this is a CSS question... not a PHP one. There is a difference. The Doctor wrote: I am trying to modularize a Web Page using one of Dremweaver's CSSes. It works in Firefox but it falls about in IE. Is IE at fault

[PHP] php and CSS

2004-06-14 Thread Bruno Santos
Hello all. Im deleloping some PHP pages for school work, and now, im trying to put the pages nice, with some colors and images, etc... I found a problem regarding CSS and PHP The same page, with html extension, it works fine, but when the page becames with php extension, the CSS just dont work

RE: [PHP] php and CSS

2004-06-14 Thread Robert Sossomon
Bruno, Drop some code our way, it's just a guessing game for me without it. Robert -Original Message- From: Bruno Santos [mailto:[EMAIL PROTECTED] Sent: Monday, June 14, 2004 3:28 PM To: [EMAIL PROTECTED] Subject: [PHP] php and CSS Hello all. Im deleloping some PHP pages

Re: [PHP] php and CSS

2004-06-14 Thread Bruno Santos
Robert Sossomon wrote: Bruno, Drop some code our way, it's just a guessing game for me without it. Robert -Original Message- From: Bruno Santos [mailto:[EMAIL PROTECTED] Sent: Monday, June 14, 2004 3:28 PM To: [EMAIL PROTECTED] Subject: [PHP] php and CSS Hello all. Im deleloping some

RE: [PHP] php and CSS

2004-06-14 Thread Robert Sossomon
-Original Message- From: Bruno Santos [mailto:[EMAIL PROTECTED] Sent: Monday, June 14, 2004 4:04 PM To: Robert Sossomon Cc: [EMAIL PROTECTED] Subject: Re: [PHP] php and CSS Robert Sossomon wrote: Bruno, Drop some code our way, it's just a guessing game for me without it. Robert

[PHP] php and CSS level 2

2004-03-20 Thread Andy B
was just wondering if php will work inside a CSS level 2 style sheet?? for example: ?php ? style type=text/css ?php if(!empty($name)){ ? input#name { display: none } ?php } else { ? input#name { font-family: Arial, serif; font-size: 12pt; color: blue; background-color: transparent; . } ?php

[PHP] PHP, HTML, CSS and a lot of problems

2003-11-17 Thread Bjrn Berg
I have written a short script in PHP that parses an HTML template and replaces Blocks (looks-like special HTML Tags) with information fetched from a Mysql database. The problem I have is that the HTML template includes several Javascripts and CSS definitions, looks like that: link rel=stylesheet

Re: [PHP] PHP, HTML, CSS and a lot of problems

2003-11-17 Thread David T-G
Björn -- ...and then Björn Berg said... % % I have written a short script in PHP that parses an HTML template and % replaces Blocks (looks-like special HTML Tags) with information fetched % from a Mysql database. Sounds neat. % % The problem I have is that the HTML template includes

Re: [PHP] PHP, HTML, CSS and a lot of problems

2003-11-17 Thread Bjrn Berg
David T-G wrote: % through the PHP script. A link relation to a favicon works without problems % and is displayed in the browser URL. % % Does anybody know how to get it running? Not until you show us some code and some before-and-after. We're not mind readers, you know :-) Yes you are

[PHP] PHP with CSS

2002-06-30 Thread Bruce Karstedt
Quick question? Is their anything in Apache or PHP that would keep styles from working. Both external (CSS) and inline styles are ignored. Environment : Win XP Pro Apache 2.0.39 PHP 4.2.1 Writing Debugging on Homesite 4.0.1 Bruce Karstedt President Technology Consulting Associates, Ltd.

RE: [PHP] PHP with CSS

2002-06-30 Thread Martin Towell
: Monday, July 01, 2002 2:32 PM To: PHP - General List (E-mail) Subject: [PHP] PHP with CSS Quick question? Is their anything in Apache or PHP that would keep styles from working. Both external (CSS) and inline styles are ignored. Environment : Win XP Pro Apache 2.0.39 PHP 4.2.1 Writing

RE: [PHP] PHP with CSS

2002-06-30 Thread Peter
To: PHP - General List (E-mail) Subject: [PHP] PHP with CSS Quick question? Is their anything in Apache or PHP that would keep styles from working. Both external (CSS) and inline styles are ignored. Environment : Win XP Pro Apache 2.0.39 PHP 4.2.1 Writing Debugging on Homesite

RE: [PHP] PHP with CSS

2002-06-30 Thread Bruce Karstedt
PROTECTED]] Sent: Sunday, June 30, 2002 11:31 PM To: '[EMAIL PROTECTED]'; PHP - General List (E-mail) Subject: RE: [PHP] PHP with CSS Importance: Low if in-line styles aren't working (and you can see them when you do a view source) then it's nothing to do with apache. (unless there's a header

RE: [PHP] PHP with CSS

2002-06-30 Thread Martin Towell
) 2. is the style sheet file accessable from the web can't think of anything else that could be wrong -Original Message- From: Bruce Karstedt [mailto:[EMAIL PROTECTED]] Sent: Monday, July 01, 2002 3:17 PM To: 'Martin Towell'; 'PHP - General List (E-mail)' Subject: RE: [PHP] PHP with CSS

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
. The link you provided will become a great resource for PHPBeginner.com Cheers! Maxim Maletsky www.PHPBeginner.com -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: giovedi 4 ottobre 2001 6.58 To: Jason Dulberg Cc: [EMAIL PROTECTED] Subject: RE: [PHP] php

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