Re: Php and CSS where to put it

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





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' ;

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=#000066 background= 'inc/bg.gif' bgcolor=#CCCCCC>
<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>";

?>


Terion: Install Firefox and the "HTML Validator" extension. It is a perfect tool for you. It will clearly identify all the HTML errors and warnings, AND point you to how to fix them. It uses Tidy, which classifies many errors as warnings.

However, you should fix them. Your page has 21 serious warnings many of which are errors that will affect rendering. After you've fixed the warnings and errors it finds, run the W3C HTML Validator.

Also, install the Firefox extension "Validate CSS". Run it on your page. It has 8 bad errors.

These tools are great learning aids.

Incidentally, I'm not a fan of frames, often causes problems.

Al.....

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux