Parse error: syntax error, unexpected T_BOOLEAN_AND, expecting '(' in

$command = $_POST['cmd'];
$args = $_POST['args'];

if($args == !empty && $command != 'reload'){

}

Thanks guys, got it working!

Answers


empty is a function.

$command = $_POST['cmd'];
$args = $_POST['args'];
if(!empty($args) && $command != 'reload'){

}

empty() is construct and you should have to use it like:

if(!empty($args) && $command!='reload'){

}

Check if condition:

if(!empty($args) && $command != 'reload')

Need Your Help

POS for .net MSR DATA EVENT is not fired when I swipe a card

vb.net point-of-sale pos-for-.net

I am developing application which will read credit card no without generating keystrokes for same in POS for .net.