AW: php code mhh, the problem with foreach is detached.
But the next problem is the folling message: Catchable fatal error: Object of class stdClass could not be converted to string in D:\Programme\Xampp\xampp\htdocs\joomla\myPhp\db3.p hp on line 7
My SourceCode:
I hope everybody can help me
Thaks
<?php
function userdatenauslesen() {
global $database;
$database->setQuery("SELECT * FROM jos_users");
$rows = $database->loadObjectList();
foreach ($rows as $row => $value) {
echo $value . '<br />';
}
}
userdatenauslesen();
?> |