while
(
$stmt
->
fetch
(
)
)
{
if
(
$mysqli
->
errno
)
{
throw
new
Exception
(
'Failed to fetch results'
,
1
)
}
else
{
$data
[
]
=
$rslt
;
}
}