jdrasq Posted July 21, 2007 Share Posted July 21, 2007 Hello, If I have a database for example with style, heading and content, where the style would be one of a b or c, then is it possible to have in the page code when loading the item to use the css style defined? Thank you, JDRasq Quote Link to comment Share on other sites More sharing options...
AndyB Posted July 21, 2007 Share Posted July 21, 2007 Yes. Retrieve the values from the database before the head of the page, and then echo out your CSS line ... <?php echo '<link rel="stylesheet" media="screen" href="'. $style. '.css" type="text/css" />';?> Quote Link to comment Share on other sites More sharing options...
jdrasq Posted July 21, 2007 Author Share Posted July 21, 2007 thank you Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.