php codeing and graphics

Discussion in 'Programming' started by docevil, Jun 16, 2008.

  1. #1
    hello there all just a quick question i have a script in trying to edit, i am trying to set a picture as the background on the page so instead of it being a white bckground i want say a house picture for the estate agents or say a gang sat in a park for the gang page, i want the picture to be the background but want the writeing on top and still be able to click it, i know it sounds stupid explaining this way but im just makeing sure you know how i would like it.

    The question im asking is what code would i need to put in the file to get the picture to show as the background


    here is the code from the page if you should need it


    i have picked a short code the gang central page






    <?php
    include "globals.php";
    print "<h3>Gang Central</h3>
    <a href='creategang.php'>&gt; Create A Gang Here</a><br />
    <hr /><u>Gang Listings</u><br />
    <table cellspacing=1 class='table'><tr style='background:gray;'><th>Gang</th><th>Members</th><th>President</th><th>Respect Level</th></tr>";
    $gq=$db->query("SELECT g.*,u.* FROM gangs g LEFT JOIN users u ON g.gangPRESIDENT=u.userid ORDER BY g.gangID ASC;");
    while($gangdata=$db->fetch_row($gq))
    {
    print "<tr><td><a href='gangs.php?action=view&ID={$gangdata['gangID']}'>{$gangdata['gangNAME']}</a></td><td>";
    $cnt=mysql_query("SELECT username FROM users WHERE gang={$gangdata['gangID']}",$c);
    print mysql_num_rows($cnt)."</td><td><a href='viewuser.php?u={$gangdata['userid']}'>{$gangdata['username']}</a></td>
    <td>{$gangdata['gangRESPECT']}</td></tr>";
    }
    print "</table>";
    $h->endpage();
    ?>


    any one that can help im very greatfull to you and to everyone else reading this thanks for takeing the time to read it


    doc
     
    docevil, Jun 16, 2008 IP
  2. Vooler

    Vooler Well-Known Member

    Messages:
    1,146
    Likes Received:
    64
    Best Answers:
    4
    Trophy Points:
    150
    #2
    While you have posted a php code alongwith it, it now bacame a bit confusing for me (atleast) sir.

    Actually what I think is you want html code that can get your image on background

    or

    And pardon me, if am wrong and you want to write over an image using php & GD2, that is different story, let me know if you need that sort of example too.

    I hope it helps.

    regards
     
    Vooler, Jun 17, 2008 IP