0
I need to do a while with PDO and pick up each dice, manipulate them and play within an array. How can I do that?
My php:
while ($linhaMsg=$pegaMsgsLogra->fetch(PDO::FETCH_ASSOC)) {
@$idAviso = $linhaMsg['idAvisoLogradouro'];
@$idUsuario = $linhaMsg['idUsuario'];
@$msg = $linhaMsg['msg'];
@$foto = utf8_encode($linhaMsg['foto']);
@$hora = $linhaMsg['hora'];
$horaP = explode(':', $hora);
$hora = $horaP[0].':'.$horaP[1];
$return = array(
'nome' => $nome,
'msg' => $msg,
'foto' => $foto,
'hora' => $hora
);
}