Originally Posted by ManiacDan
PHP Code:
if($xboth 
You are using them like booleans. The inside of an IF must be a true/false expression. PHP will fake it if you do it wrong, but you're still using them like booleans.
Well, php did fake it initially. But after coding properly, its working now.