PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
This is so basic - I feel like a complete idiot having to ask about this - but I've spent an hour trying to get this code to work right and it still won't. Can anyone here tell me WHY this script always dies with no results even though the SQL successfully brings up a row when I execute it in phpMyAdmin?
if ($num == 0) {
die ("Not a valid client lookup.");
}
Trying putting it in like this. It helps stop confusion. Also, look into PEAR standards for coding. Not all of them I agree with but most of them help everyone, including yourself.
And next time you realize that you have found your solution right after posting it, just edit the first post and say something like:
"EDIT: Ooops! This is what's wrong!
blah blah code blah"