Created
October 8, 2015 07:47
-
-
Save ghazal/36d21acd9d821acc9cb5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$db = JFactory::getDBO(); | |
$query = "SELECT * FROM #__categories WHERE section = 1"; | |
$db->setQuery($query); | |
$list = $db->loadObjectList(); | |
foreach ($list as $item) { | |
$item_title = $item->title; | |
echo $item_title.'<br />'; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment