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!


Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13
  1. #11
    Join Date
    Jun 2005
    Posts
    4,795
    Tokens
    0

    Latest Awards:

    Default

    http_vars_get should not be used. Its totally outdated. You should use $_GET.
    Quote Originally Posted by 01101101entor View Post
    Ok so on the assumption by the end of it the GET string after the file name is

    ?first=1&second=2&third=3&final=4
    (the 1234 can be subsituted for any pin. Then in full
    PHP Code:
    $pin http_vars_get['first'].http_vars_get['second'].http_vars_get['third'].http_vars_get['final'] ;
    mysql_query("INSERT INTO `entrys` (`pin`) VALUES ('$pin')") or die ("mysql_error()"); 

  2. #12
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    Quote Originally Posted by Tomm View Post
    http_vars_get should not be used. Its totally outdated. You should use $_GET.
    Get doesnt seem to be working, hence its possible that his server could just be running an outdated php version, if thats the case http_vars_get will get the data wanted. And if its not, will work on modern installations (dispite being deprecated anyway)

  3. #13
    Join Date
    Dec 2005
    Location
    Australia
    Posts
    693
    Tokens
    0

    Default

    Quote Originally Posted by Xiwl View Post
    dont work this is what im trying to do

    $query = mysql_query("INSERT INTO entrys (pin) VALUES('$_GET['first'] . $_GET['second'] . $_GET['third'] . $_GET['final'];')");
    It should be..
    PHP Code:
    $query mysql_query("INSERT INTO entrys (pin) VALUES('" $_GET['first'] . $_GET['second'] . $_GET['third'] . $_GET['final'] . "')"); 
    You had it wronggg.
    XHTML, CSS, AJAX, JS, php, MySQL.

    --

    HxF moderators can't read timestamps.

Page 2 of 2 FirstFirst 12

Posting Permissions

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