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!
the following prints out just fine if there is an author and year in the database for the field "subgenero". The problem is if there is no author and year in the database the "," between the two fields still prints out even though the fields are empty. Is there a way to write this so that if the author and year fields are empty the "," won't print out either.