GD Library to place text on image [HELP]

Discussion in 'PHP' started by jpinheiro, Dec 9, 2009.

  1. #1
    Hello,

    I needhelp with GD library to place text on an image.

    The string will be called

    $totaltickets

    
    <?php
    
    $link = mysql_connect("localhost", "mysql_user", "mysql_password");
    mysql_select_db("database", $link);
    
    $result = mysql_query("SELECT ticketid FROM tickets", $link);
    $totaltickets = mysql_num_rows($result);
    
    
    //Proccess GD Library
    
    ?>
    
    
    
    PHP:
    the page should only display a png image when visited with the text on it if you can do it that would be great here is the image:
    [​IMG]

    and here is the image what i hope for it to look close to when it has text:
    [​IMG]


    -John
     
    jpinheiro, Dec 9, 2009 IP
  2. n3r0x

    n3r0x Well-Known Member

    Messages:
    257
    Likes Received:
    4
    Best Answers:
    1
    Trophy Points:
    120
    #2
    n3r0x, Dec 9, 2009 IP
    jpinheiro likes this.
  3. jpinheiro

    jpinheiro Peon

    Messages:
    1,211
    Likes Received:
    15
    Best Answers:
    1
    Trophy Points:
    0
    #3
    thanks for that it worked out good :) +rep given

    -John
     
    jpinheiro, Dec 9, 2009 IP