Website - 'mini gallary' - 6 images.

Results 1 to 3 of 3
  1. #1
    pork pork Parker is offline
    MemberRank
    Dec 2007 Join Date
    new holland.Location
    5,873Posts

    Website - 'mini gallary' - 6 images.

    Hey, since this wasn't really portfolio worthy in terms of design, I thought I would post it in here, just to see whether you guys like it or not and what I can improve on.

    With the images and resizing them, that will be done manually by the person who is making the tutorial so once the I finish the site the public won't be uploading the images.

    http://*******.com/dcw56e


  2. #2
    hello danse is offline
    MemberRank
    Jun 2004 Join Date
    1,809Posts

    Re: Website - 'mini gallary' - 6 images.

    forgive me parker, but i dont get the point, you are asking our opinion on design, code or what?

  3. #3
    pork pork Parker is offline
    MemberRank
    Dec 2007 Join Date
    new holland.Location
    5,873Posts

    Re: Website - 'mini gallary' - 6 images.

    Quote Originally Posted by danse View Post
    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";
    ?>



Advertisement