Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $statement = $pdo->prepare('UPDATE Utilizador SET ativo=:ativo WHERE idUsers=:idUsers');
- $arraydados= json_decode($_POST["models"]);
- $idUtilizadores = $arraydados[0]->{'idUtilizadores'};
- $ativo = 0;
- $statement->bindParam(':idUtilizadores', $idUtilizadores);
- $statement->bindParam(':ativo', $ativo);
- if($statement->execute())
- {
- echo "sucess";
- }
- else
- {
- echo "Error";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement