Thread: php code
View Single Post
Old 24.03.2007, 13:20   #4 (permalink)
bummibaum
Baby Mamber
 
Join Date: Nov 2006
Posts: 6
bummibaum is on a distinguished road
Default 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();
?>
bummibaum is offline   Reply With Quote