Originally Posted by sunfighter
Your very first line of code should be throwing up an error:
Ummm...I don't use PHP, but I know that is not true.
His very first line of code is actually 4 physical lines:
echo "<th><select name='A' id='A' onChange='" . theAFunction() . "'>
See the semicolon at the end there? It's correct.
WHERE aye LIKE '%' ... makes no sense.
Yes, it does. He is simply *testing* the logic. As he stated
The default display is all of the records ...
$a = '%'; // Setting the variables to match all the records first
And that WHERE clause (and the subsequent parts of it) will do exactly that.
His problem is simple, he calls theAfunction( )
in doing that first echo
, which I assume does what it is supposed to do by setting the value of $a
to match $_POST["A"]
, but then he turns around *AFTER THAT* and *RESETS* $a
back to $
I *think* he just needs to put the initialization of $a, $b, etc. *BEFORE* that first call to theAfunction()
But maybe not. I don't follow the logic (or illogic) of this page, at all.