PDA

View Full Version : how i change the font



saad_d3vil
08-31-2008, 01:52 PM
hi how i change the font , color and size of table of the table text this is my code

<?php
$con = mysql_connect("localhost","apnimusk","password");
if (!$con){



die('Could not connect: ' . mysql_error());
}

mysql_select_db("apnimusk_other", $con);
if(isset($_GET['id']) && is_numeric($_GET['id'])){



$result = mysql_query("SELECT * FROM `joke` WHERE `id` = '".$_GET['id']."'");



echo "<table border='1'>



<tr>




</tr>";


while($row = mysql_fetch_array($result)){





echo "<tr>";





echo "<td>" . $row['name'] . "</td>";



echo "</tr>";


echo "<tr>";




echo "<td>" . $row['text'] . "</td>";





echo "</tr>";


}



echo "</table>";
}else{



$result = mysql_query("SELECT * FROM `jokes`");



echo "<table border='1'>



<tr>



<th>Jokes</th>


</tr>";



while($row = mysql_fetch_array($result)){





echo "<tr>";








echo "<td>" ."<a href='?id=".$row['id']."'>".$row['name']."</a>" . "</td>";





echo "</tr>";



}



echo "</table>";
}
mysql_close($con);
?>

Moshambi
08-31-2008, 04:05 PM
Ok to start off I'll let you know that I am IN NO WAY A PHP EXPERT! I'm sure if I am wrong here that someone else will come along and provide you the correct solution....teaching you and me both. But with my experience of using PHP my guess to fix this would just be to supply CSS styles to the elements you want to change the font-style of...

try that out and see if it works, which to my best knowledge, should.

Hope this helps! (Sorry if it doesnt...)