Access to WordPress 3 database
-
In Joomla an access to database could be:
function getSats() {
$db = JFactory::getDBO();
$sql = “SELECT * FROM jos_alphajob_sats”;
$db->setQuery($sql);
$data = $db->loadObjectList();
return($data);
}
How is the code in WordPress?Yours
Bjarne
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Access to WordPress 3 database’ is closed to new replies.