faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

1 of 4 people (25%) answered Yes
Recently 1 of 4 people (25%) answered Yes

Entry

When looping with a mysql_fetch_array($result) how do I change the font and size of the results.

Mar 15th, 2008 18:06
ha mo, Reza A Tabibazar, Jerry Guess,


one way is to use css
  $row = mysql_fetch_array($result) or die(mysql_error()."Could not
fetch row one");
        print ('<div class="shout"><p>'. "\n");
        echo $row['msg'].'<br/>';   
        print ('</p></div>'. "\n"); 
      }
shout is declared in the a style.css file or the head section like this
.shout  {
border : #A9A9A9;
display : block; 
padding-top : 4px; 
padding-right : 0px; 
padding-bottom : 4px; 
padding-left : 4px; 
border-top-width : 0px; 
border-right-width : 1px; 
border-bottom-width : 1px; 
border-left-width : 1px; 
border-style : solid; 
width : 145; 
text-align : left; 
align : left;
line-height: 130%; 
font-size : 70%; 
}
or you can use the font tag
<font color="#A9A9A9"> something </font>
http://www.tantofa.com
http://www.fantofa.com
http://www.mantofa.com
http://www.tanpola.com
http://www.tampola.com
http://www.mozmar.com
http://www.yamot.com
http://www.templatestemp.com