Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.
and i put it together with other scripts running queries. It would not run - how do i get it to run?
<?php $db = JFactory::getDbo(); // Create a new query object. $query = $db->getQuery(true); $query ->select('count (*) from jos_users'); // Reset the query using our newly populated query object. $db->setQuery($query); // Load the results as a list of stdClass objects (see later for more options on retrieving data). $results = $db->loadObjectList(); print_r($results); ?>