How to update multiple records by setting different values, eg:
$update = "UPDATE tabela SET ativo=1, nivel=2 WHERE nome ='jose'
AND nome='maria'
AND nome='joao'";
In this case, I just want jose to receive level = 2 and the rest receive level = 1 in the same query. and active = 1 for all .
I'm using PHP with PDO.