Hi:
This is my first post.
I believe what I've written below should return "exactly seven" in the browser, but it returns "greater than seven" instead and I don't understand why. In case it matters, I'm coding in BBEdit 5.1 (with Mac line breaks/as opposed to UNIX or Win), and viewing the pages in IE 5.1, again, on a Mac running OS X. The server, too, is Apache on an OS X machine.
<?
$num = 7;
echo ($num == 7) ? "exactly seven" : ($num > 7) ? "greater than seven" : "less than seven";
?>
If this is the wrong way to use the forum please let me know (where I might have been able to find this answer) Thanks,
Peter