I have this form that would pull in info from the database with no problem on a j1.5 site... I have since upgraded the site to j3.1 and now i can pull in the info at all....
here is the code im using, what would i need to do to echo the results?
I get an array of the objects in this format
stdClass Object ( [cf_user_id] => 578 ) [1] => stdClass Object ( [cf_user_id] => 578 ) [2]
here is the code im using, what would i need to do to echo the results?
<?php
$user =& JFactory::getUser();
$userid=$user->id;
$db = JFactory::getDbo();
$query = $db->getQuery(true);
$query->select(array('cf_user_id'));
$query->from('#__formintake_2');
$query->where('cf_user_id = '. $user->id);
$db->setQuery($query);
$results = $db->loadObjectList();
?>
I get an array of the objects in this format
stdClass Object ( [cf_user_id] => 578 ) [1] => stdClass Object ( [cf_user_id] => 578 ) [2]