
Originally Posted by
danse
forgive me parker, but i dont get the point, you are asking our opinion on design, code or what?
Design mostly, but code it would be good if someone could tell me if I could do something better by do xor doing y, it's only FF friendly at the moment - not sure about Opera/Safari etc.
PHP Code:
<?php
/* Display topbar!
Brief Overview: Displays those 6 images you see up the top and links to the speicifc tutorial. Simple.
*/
function displayBar() {
$db = mysql_connect ('***','****_pngtuts','****');
mysql_select_db ('*****_pngtuts',$db);
$query = "SELECT id,title,image,link FROM tutorials ORDER BY id DESC LIMIT 6";
$result = mysql_query ($query);
while ($row = mysql_fetch_assoc ($result)) {
$numid = $row['id'];
$title = htmlentities ($row['title']);
$timage = $row['image'];
$tlink = $row['link'];
echo "<a href=\"$tlink\"><img src=\"$timage\" alt=\"$numid\" title=\"$title#$timage\" height=\"82\" width=\"82\" border=\"0\" /></a>";
}
}
echo "\n";
?>