Why do I get this error
Parse error: parse error, unexpected T_STRING in /home/neodream/public_html/test.php on line 24
With this code below? It refers to the true/false test.
<html>
<?php
function is_odd()
{
global $num;
echo("$num is an odd number<hr>");
}
function is_even()
{
global $num;
echo("$num is an even number<hr>");
}
?>
<body>
<?php
$num = 57;
($num%2 != 0)? is_odd() : is even();
$num = 44;
($num%2 != 0)? is_odd() : is even();
?>
</body>
</html>