bluebaboon Posted July 10, 2007 Share Posted July 10, 2007 I am trying to create a statement in PHP which counts the results of this if statement. If there are results, my if statement shows them, but I want to be able to put something that says there are no kayaks available if there are no results from my recordset that meet the requirements of this if statement. <?php if ($row_kayaks['categoryID'] == $row_kayakcategories['kayakcategoryID']) { ?> Anyone got any ideas? Quote Link to comment Share on other sites More sharing options...
king arthur Posted July 10, 2007 Share Posted July 10, 2007 Not sure that you're quite understanding how an if statement works. The only results you can get from an if are true or false. E.g. if(this statement is true) { run this block of code } else { run this block of code instead } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.