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 < 6 )
{
echo "Hello";
}
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 < 6 )
{
echo "Hello";
}
So these would work:
1
2
3
4
5
but if you wantPHP Code:if ( $a_pass < 6 && $a_pass > 0 ) {
echo ("Hello");
}
0
6
to also work:
PHP Code:if ( $a_pass <= 6 && $a_pass >= 0 ) {
echo ("Hello");
}
Last edited by Moh; 27-08-2008 at 12:07 AM.
This should do it;
Edit: Sorry didn't see the post above when I posted this.PHP Code:if ($a_pass < '6' && $a_pass > '0') {
echo ("Hello");
}
Last edited by redtom; 27-08-2008 at 12:09 AM.
Thanks![]()
Want to hide these adverts? Register an account for free!