Jump to content

Inlcuding CSS in PHP Script


Bopo

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.