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 don't understand... what is this "payment" variable? A value coming from the query result set, or a php variable?
You want to check if the payment field in the data row is not equal to "on" before you process the row, or you want to check that the payment field is not equal to "on" before you process the whole result set?