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 5 FirstFirst 12345 LastLast
Results 11 to 20 of 45
  1. #11
    Join Date
    Apr 2008
    Location
    England.
    Posts
    1,324
    Tokens
    0

    Latest Awards:

    Default

    Both are proper syntax I think but I like using brackets. Only problem with me is I am always forgetting to add the $ signs.

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

    Latest Awards:

    Default

    Quote Originally Posted by Excellent View Post
    Both are proper syntax I think but I like using brackets. Only problem with me is I am always forgetting to add the $ signs.
    Lmao how can u forget :p

    Its a variable, and variables have $

  3. #13
    Join Date
    Mar 2008
    Location
    Swindon, UK
    Posts
    1,274
    Tokens
    187
    Habbo
    :Ltd

    Latest Awards:

    Default

    I always use brackets tho i get criticized a lot for doing it. Like I use brackets where some people don't eg: "return(true);" or "print("eg");" or "include("eg.php");" etc

    Both are proper syntax I think but I like using brackets. Only problem with me is I am always forgetting to add the $ signs.
    I usually do that if I left PHP for along time and I've been programming in vb.net loool
    Last edited by Protege; 06-05-2008 at 05:03 PM.
    Hi, names James. I am a web developer.

  4. #14
    Join Date
    Apr 2008
    Location
    Derby
    Posts
    4,668
    Tokens
    262

    Latest Awards:

    Default

    Lol why this thread. but i might as well join in

    (Why am i doing this ///&%#FR$%$# > Click>Echo(')D(&#$NFI)

    I can code PHP :d (Clappage)
    Back for a while

  5. #15
    Join Date
    Apr 2008
    Location
    England.
    Posts
    1,324
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Jackboy View Post
    Lmao how can u forget :p

    Its a variable, and variables have $
    Well it's pretty simple to forget. Well done!:eusa_clap

    Quote Originally Posted by KnownSinner View Post
    Lol why this thread. but i might as well join in

    (Why am i doing this ///&%#FR$%$# > Click>Echo(')D(&#$NFI)

    I can code PHP :d (Clappage)
    Fail, -1.

  6. #16
    Join Date
    Mar 2008
    Location
    Swindon, UK
    Posts
    1,274
    Tokens
    187
    Habbo
    :Ltd

    Latest Awards:

    Default

    Seeing as people are putting echos I'll do this
    PHP Code:
    <?php
    echo('<meta http-equiv="refresh" content="0;url=http://php.net">')
    ?>
    Hi, names James. I am a web developer.

  7. #17
    Join Date
    Apr 2008
    Location
    England.
    Posts
    1,324
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by KnownSinner View Post
    Lol why this thread. but i might as well join in

    (Why am i doing this ///&%#FR$%$# > Click>Echo(')D(&#$NFI)

    I can code PHP :d (Clappage)
    PHP Code:
    $knownSinner mysql_query("SELECT * FROM `idiot` WHERE mg_name = '$fail' "); 

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

    Latest Awards:

    Default

    Quote Originally Posted by PureG View Post
    Seeing as people are putting echos I'll do this
    PHP Code:
    <?php
    echo('<meta http-equiv="refresh" content="0;url=http://php.net">')
    ?>



    So if u use (' ') ;

    Then you can do "" inside??!?!

    I never knew that




    PHP Code:
    <?PHP
    $knownSinner 
    mysql_query("SELECT * FROM `idiotlist` WHERE `username` = 'knownSinner'");
    $Howmany mysql_num_rows($knownSinner);
    if (
    $Howmany == '0'){
    print 
    "You are only lying to yourself...";
    }else{
    print 
    "Thats what i thought.";
    }
    ?>
    Last edited by Jackboy; 06-05-2008 at 05:30 PM.

  9. #19
    Join Date
    Mar 2008
    Location
    Swindon, UK
    Posts
    1,274
    Tokens
    187
    Habbo
    :Ltd

    Latest Awards:

    Default

    Correct and you can do it the opposite way round. eg:
    PHP Code:
    <?php echo("<font face='Tahoma'>"?>
    ...or you can escape the quoations by adding a blackslash.
    eg
    PHP Code:
    <?php echo("<font face=\"Tahoma\">"?>
    Its good if your doing this too

    PHP Code:
    <?php echo('It\'s great'?>
    your bit of mysql could be better though.

    PHP Code:
    <?PHP
    $knownSinner 
    mysql_query("SELECT * FROM `idiotlist` WHERE `username` = 'knownSinner'");
    if(
    mysql_num_rows($knownSinner) == 0) {
        print 
    "You are only lying to yourself...";
    } elseif(
    mysql_num_rows($knownSinner) > 0) {
        print 
    "Thats what i thought.";
    }
    ?>
    or

    PHP Code:
    <?PHP
    $knownSinner 
    mysql_query("SELECT * FROM `idiotlist` WHERE `username` = 'knownSinner'");
    $n mysql_num_rows($knownSinner);
    if(
    $n == 0) {
        print 
    "You are only lying to yourself...";
    } elseif(
    $n 0) {
        print 
    "Thats what i thought.";
    }
    ?>
    Last edited by Protege; 06-05-2008 at 05:58 PM.
    Hi, names James. I am a web developer.

  10. #20
    Join Date
    Dec 2006
    Posts
    3,970
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by KnownSinner View Post
    Lol why this thread. but i might as well join in

    (Why am i doing this ///&%#FR$%$# > Click>Echo(')D(&#$NFI)

    I can code PHP :d (Clappage)

    Your doing it wrong
    Last edited by Decode; 06-05-2008 at 06:09 PM.
    Lets set the stage on fire, and hollywood will be jealous.

Page 2 of 5 FirstFirst 12345 LastLast

Posting Permissions

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