Code: Select all
<?php if($party==On) { echo "<style type='text/css'>
@import url( files/style.css )
</style>; }
else { echo "<style type='text/css'>@import url( files/style.css )</style>; } ?>However with that code above I am getting the classic , or ; expected error, I cant find where it need sit, I took out the ; where file/style.css ); was incase it was corrupting.
But it still does not work so does anybody have a replacement? Thanks.
EDIT: Fixed.
Code: Select all
<?php if($party==On) { echo "<style type='text/css'>
@import url( files/style_party.css );
</style>"; }
else { echo "<style type='text/css'>@import url( files/style.css );</style>"; } ?>Works for me.