Object of class mysqli_result could not be converted to string
<?php
while ($row= $resultAll->fetch_assoc()) {
echo $row['data'];
}
?>
Object of class mysqli_result could not be converted to string
<?php
while ($row= $resultAll->fetch_assoc()) {
echo $row['data'];
}
?>
object of class stdclass could not be converted to string php laravel
/*
$data is indeed an array, but it's made up of objects.
Convert its content to array before creating it*/
$data = array();
foreach ($results as $result) {
$result->filed1 = 'some modification';
$result->filed2 = 'some modification2';
$data[] = (array)$result;
#or first convert it and then change its properties using
#an array syntax, it's up to you
}
Excel::create(....
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us