1 big problem however is that i cant ever seem to get Mysql working with it.
Seems a bit sudden but i'm just wondering why my component won't work with....
Code: Select all
$sql = 'SELECT * FROM schools';
$database->setQuery( $sql );
$rows = $database->loadObjectList();
foreach ( $rows as $row ) {
echo $row->id;
}
Thanks, i've been attempting this for ages and i bet its obvious.