[PHP] Php and CSS where to put it

2009-01-12 Thread Terion Miller
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 * FROM `textads` WHERE `expos`  xCount ORDER BY RAND()
LIMIT 3;
$result = mysql_query($sql);

echo 
table class=jobfont width=728 height=90 border=0 align=center
cellpadding=10 bordercolor=#66 background= 'inc/bg.gif' bgcolor=#CC
tr
td
table width=690 height=50 border=0 align=center cellpadding=5
tr;

while ($row = mysql_fetch_array($result)) {
echo 
td  class=col align=center
width=33%{$row['title']}br{$row['blurb']}br
A HREF='{$row['href']}'{$row['href']}/a/td;
//Add to exposure count
$views = $row['xCount'] + 1;
mysql_query(UPDATE `textads` SET `xCount` = '{$views}' WHERE `ID` =
'{$row['ID']}');
}

echo  /tr
/table/td/tr/table;

?


Re: [PHP] Php and CSS where to put it

2009-01-12 Thread Stephen

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 and see what happens.

Stephen


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Php and CSS where to put it

2009-01-12 Thread VamVan
-- 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