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
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
-- 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
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
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
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
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,
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,
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.
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
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
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
[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
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!
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
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
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
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
-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
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
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
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
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
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.
: 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
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
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
)
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
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
]
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
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
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
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
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
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
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
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)) {
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/)
-
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
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
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:
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
: [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
.
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
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
-
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
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
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
(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
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
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
, 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
52 matches
Mail list logo