<?php
foreach ($query->result() as $row){
echo $row;
}?>
would cause PHP error:
So how to convert that to text ?
A PHP Error was encounteredSeverity: 4096Message: Object of class stdClass could not be converted to string
you can use print_r function:
<?php:
foreach ($query->result() as $row){
echo print_r($row)."<br />";
}?>
Result:
No comments :
Post a Comment