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 4 of 4
  1. #1
    Join Date
    Mar 2007
    Location
    Portland/dorset
    Posts
    1,568
    Tokens
    0

    Latest Awards:

    Default PHP and mysql help

    Im trying to order the list on the request line by name ive added

    PHP Code:
    //$result = mysql_query("SELECT * FROM staff ORDER BY username") ; 
    The rest of the code is
    PHP Code:
    if($_GET["op"] == "reg") {

    //$result = mysql_query("SELECT * FROM staff ") ;

    //while($worked = mysql_fetch_array($result)) {

    //$get_word = $worked['username'];

    //if(preg_match("/$get_word/i", "$servertitle")) { $dj_name = "$get_word"; }

    //}

    $dj_name addslashes($_POST["dj_name"]);

    if(
    $dj_name == "Choose One...") { echo "<font color='black' face='Verdana' size='1'><b><font face=Verdana color=black size=2>You Need To Select A DJ Or No One Will Recieve It !<br>"; exit; } 
    Thanks if you can help
    Lets make the map red again

    T4 on the beach 2009 woo
    Need help PM me Im always happy to help, more then the guys at Asda

  2. #2
    Join Date
    Nov 2007
    Location
    London
    Posts
    1,577
    Tokens
    36

    Latest Awards:

    Default

    That line is commented out, that's as good as nothing (that bit of PHP is not even run). You're editing the wrong line.
    Kind Regards,

    Guy
    __________________

    Since 2007. Unbelievable Uptime. Web hosting, resellers, master resellers, linux VPS, windows VPS, shoutcasts, at the lowest prices on the net.
    Tech-Hosts.co.uk.


  3. #3
    Join Date
    Mar 2007
    Location
    Portland/dorset
    Posts
    1,568
    Tokens
    0

    Latest Awards:

    Default

    ah ok thanks any idea on what line lol
    Last edited by Jordan,; 28-12-2008 at 04:12 PM.
    Lets make the map red again

    T4 on the beach 2009 woo
    Need help PM me Im always happy to help, more then the guys at Asda

  4. #4
    Join Date
    Sep 2005
    Location
    East London
    Posts
    3,028
    Tokens
    0

    Latest Awards:

    Default

    PHP Code:
    // 
    is a way of commenting on a line of code in PHP.

    Take away the // on the lines that you wish to work :p

    eg.

    // mysql_query();
    would produce nothing, whilst
    mysql_query(); OBVIOUSLY WITH A QUERY INSIDE would do something

Posting Permissions

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