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!
I am reading a "main category" table and "subcategory" table then trying to write out the main category in H2 tags, then write the subcategories below it. For some reason, the if statement does not recognize when the main category is changing ( if (!$record["Main"] == $previous_main) ). Does anyone now why or know of an effective way of doing this?