Bopo Posted November 8, 2008 Share Posted November 8, 2008 Hi Basically I have a script which runs a query and populates a database like so f($row = mysql_fetch_array($result)) { echo <<<MY_HTML <table width="200" border="1"> <tr> <td width="109">Brand</td> <td width="75">$row[brand]</td> </tr> <tr> <td>Model</td> <td>$row[model]</td> </tr> <tr> <td>Edition</td> <td>$row[edition]</td> </tr> etc etc... MY_HTML; } Anyway this table is shown in all my other pages, however I can't seem figure out how to reference or make the CSS work with the table, usually the result is the CSS just gets physically displayed on each page as text. Help appreciated Link to comment https://forums.phpfreaks.com/topic/131903-inlcuding-css-in-php-script/ Share on other sites More sharing options...
blueman378 Posted November 8, 2008 Share Posted November 8, 2008 you dont include it through php you include it jsut as you do a normal html page in the head section Link to comment https://forums.phpfreaks.com/topic/131903-inlcuding-css-in-php-script/#findComment-685244 Share on other sites More sharing options...
DarkWater Posted November 8, 2008 Share Posted November 8, 2008 You need to have <style> tags when you output CSS. Link to comment https://forums.phpfreaks.com/topic/131903-inlcuding-css-in-php-script/#findComment-685263 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.