Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.
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); ?>
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.