Results 1 to 4 of 4

Thread: PHP help

  1. #1
    Join Date
    Aug 2008
    Posts
    36
    Tokens
    0

    Default PHP help

    Right im doing an if statement and what i want it to do is:

    if less than 6 but greater than 0 then echo

    heres the code so far if someone can tell me what to add to it thanks.

    PHP Code:
    if( $a_pass )

    {

        echo 
    "Hello";



  2. #2
    Join Date
    May 2006
    Location
    Hull
    Posts
    7,701
    Tokens
    2,430
    Habbo
    Moh

    Latest Awards:

    Default

    So these would work:
    1
    2
    3
    4
    5
    PHP Code:
    if ( $a_pass && $a_pass ) {
     echo (
    "Hello");

    but if you want
    0
    6
    to also work:
    PHP Code:
    if ( $a_pass <= && $a_pass >= ) {
     echo (
    "Hello");

    Last edited by Moh; 27-08-2008 at 12:07 AM.

  3. #3
    Join Date
    Jul 2005
    Location
    North Wales
    Posts
    4,233
    Tokens
    2,009

    Latest Awards:

    Default

    This should do it;

    PHP Code:
    if ($a_pass '6' && $a_pass '0') {

        echo (
    "Hello");


    Edit: Sorry didn't see the post above when I posted this.
    Last edited by redtom; 27-08-2008 at 12:09 AM.

  4. #4
    Join Date
    Aug 2008
    Posts
    36
    Tokens
    0

    Default

    Thanks

Posting Permissions

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