Re: Re: Php and CSS where to put it

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

 



Resolved! Thanks!

On Mon, Jan 12, 2009 at 12:38 PM, Michelle Konzack <
linux4michelle@xxxxxxxxxxxxxxx> wrote:

> Hello Terion,
>
> Am 2009-01-12 10:42:10, schrieb 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?
>
> The CSS must be in the HTML Header like
>
> <html>
> <head>
>  <title>CSS Example</title>
>   <link rel="stylesheet" type="text/css" href="inc/styles.css">
>   <style type="text/css">
>    #body { background-color: magenta; }
>  </style>
> </head>
> <body>
>
> ...rest of the page
>
> > <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>
>
> according to W3C any values must be quoted like:
>
> echo "
> <table class=\"jobfont\" width=\"728\" height=\"90\" border=\"0\"
> align=\"center\"
> cellpadding=\"10\" bordercolor=\"#000066\" background= \"inc/bg.gif\"
> bgcolor=\"#CCCCCC\">
>
> Do not forget to ESCAPE!  And of course, I would put the stuff into  the
> CSS definition and not into the TABLE tag.
>
> > <tr>
> > <td>
> > <table width=690 height=50 border=0 align=center cellpadding=5>
>
> QUOT the values!
>
> > <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>";
> >
> > ?>
>
> Your HTML page has to be closed with:
>
> </body>
> </html>
>
> Thanks, Greetings and nice Day/Evening
>    Michelle Konzack
>    Systemadministrator
>    24V Electronic Engineer
>    Tamay Dogan Network
>    Debian GNU/Linux Consultant
>
>
> --
> Linux-User #280138 with the Linux Counter, http://counter.li.org/
> ##################### Debian GNU/Linux Consultant #####################
> <http://www.tamay-dogan.net/>               <http://www.can4linux.org/>
> Michelle Konzack   Apt. 917                  ICQ #328449886
> +49/177/9351947    50, rue de Soultz         MSN LinuxMichi
> +33/6/61925193     67100 Strasbourg/France   IRC #Debian (irc.icq.com)
>

[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