2
I have an api that returns the data of the user in json, but wanted to return all data except the password, would it have any way without being select in all fields except the password? I’m doing so currently:
if ($autenticado) {
$resultado = $sql->select("SELECT * FROM tb_alunos WHERE email = :EMAIL LIMIT 1",array(
":EMAIL"=>$usermail[0]
));
$response = json_encode($resultado);
}else{
return $response->withStatus(401);
}
No, either send them all or specify each one.
– rray
You can tell us which is the database manager? Oracle Database, mariaDB, Postgresql etc..
– José Diz
to using mysql
– Igor Oliveira