Posted By

batandwacolani on 01/27/12


Tagged

database php joomla15


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

matt0309


Joomla 1.5 Database Query


 / Published in: PHP
 

Querying the database in Joomla 1.5

  1. $query = "SELECT * FROM #__table";
  2. $db =& JFactory::getDBO();
  3. $db->setQuery($query);
  4.  
  5.  
  6. //Fetch results. Use ONLY one of the following
  7. $results = $db->loadObjectList();
  8. $result = $db->loadObject();
  9. $result = $db->query();

Report this snippet  

You need to login to post a comment.