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!
CyberSpatium wrote:add an extra equal sign to make it equal to..
Exactly, the way you had it before meant it was setting $row['Agua'] equal to 1 not testing to see if it was equal to 1 that means that you always got the first result.