php code good mornig,
soory my english is not so good.
I will insert phpcode with mosphp.
Iwill read all name from jos_users.
can erverybody say what i do wrong:
<?php
function test() {
global $database;
$database->setQuery("SELECT Name FROM jos_useres");
$rows = $database->loadObjectList();
foreach( $rows as $row ) {
echo "$row->Name<br />\n";
}
}
test();
?>
The message is:
Invalid argument supplied for foreach() in D:\Programme\Xampp\xampp\htdocs\joomla\myPhp\db3.p hp on line 6
Thanks i hope erverybody can help me |