If statement
Hi,
Im having trouble trying to use the if statements to get certain parts of my page to show or not depending on certain variables. I know how to add a show region depending on if a recordset is empty, but i dont necessarily want it to be based on whether a recordset is empty or not.
I am using the data assist start up database so all the field names will be as expected. When trying to hide a test div by using an if statement it automatically generates
<?php if ($totalRows_WADAproducts == 0) { // Show if recordset empty ?>
What i wanted to do was change it so that if the name of a record was set to a certain value, then it would show a certain region. ie if the value of column 'ProductName' was set to 'Test' then show....
Can you give me any help on how i would build this?