style in php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
maruuma
Forum Newbie
Posts: 4
Joined: Thu Jan 24, 2008 12:50 am

style in php

Post by maruuma »

hi every one, i have this below code in php and i want to use a certin style code like:

font-family: verdana, arial, Helvetica, sans-serif; font-size:10px;

my php code is:

mysql_connect($db_host, $db_user, $db_pass) or die();
mysql_select_db($db_name) or die();
$result=mysql_query("select * from issue where online=1") or die(mysql_error());
$output="";
if(mysql_num_rows($result) >0){
for($i=1; $i<4; $i++){
$id= mysql_result($result,0,'id');
$output .='<div style="height:60"><img src="images/'.mysql_result($result,0,'t'.$i.'_spic').'" width="65" height="60" align="left" />
<a href="campus_life.php?t'.$i.'='.$id.'">'.mysql_result($result,0,'t'.$i.'_title').'</a><br><br>'.substr(mysql_result($result,0,'t'.$i.'_text'),0, 150).'</div><br><br>';
}
}
echo $output;
?>



pls help meeee!!!!
maruuma
Forum Newbie
Posts: 4
Joined: Thu Jan 24, 2008 12:50 am

Re: style in php

Post by maruuma »

thank you
i find the solution.
Post Reply