Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 3 of 3

Thread: Simple PHP Job

  1. #1
    Join Date
    Jan 2009
    Location
    UK
    Posts
    42
    Tokens
    0

    Default Simple PHP Job

    Basically, I have a mysql table with userID and OfferID but I need Usertitle and offertitle to be submitted and for it to show up on the php page.

  2. #2
    Join Date
    Jun 2007
    Location
    England
    Posts
    495
    Tokens
    0

    Default

    I dont understand...

    Dan


  3. #3
    Join Date
    Feb 2008
    Posts
    291
    Tokens
    0

    Default

    Erm

    Just started PHP, so correct me if im wrong.

    <?php

    ?>

    <html>
    <body>
    <?php
    include_once "db_connect.php";
    $fetch=mysql_fetch_object($query);
    $userid = $_GET['UserID'];
    $userid = $_GET['offertitle'];
    $fetch->UserID
    $fetch->offertitle
    echo "Welcome $userid & $offertitle";
    ?>


    PUT THIS AS DB_CONNECT.PHP

    <?php
    $mysql_server = "localhost";
    $mysql_user = "adam_adam";
    $mysql_password = "flower";
    $mysql_database = "adam_game";
    $connection = mysql_connect("$mysql_server","$mysql_user","$mysq l_password") or die ("Unable to connect to MySQL server.");
    $db = mysql_select_db("$mysql_database") or die ("Unable to select requested database.");
    ?>
    </body>
    </html>
    Last edited by -Adam; 11-02-2009 at 09:45 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •