View Single Post
Old 08-30-2005, 03:23 PM   #4 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,726
redhead is on a distinguished road
What is this ???
PHP Code:
..
if (
$ravvarone $cust_variableone && $ravvartwo $cust_variabletwo) { 
... 
This will result in a true statement no matter what, assigning a variable some value will allways result in the value beeing assigned to the variable, in this case, unless $cust_variableone or $cust_variabletwo holds a value of 0, this will allways be true..
Shouldn't there be a == operator in use here ???
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote