Error JFactory::getDBO(); - Joomla! Forum - community, help and support
hi,
i error message while executing function don't know error can me. ???
warning: mysql_num_rows(): 58 not valid mysql result resource in /applications/mamp/htdocs/libraries/joomla/database/database/mysql.php on line 337
i
i error message while executing function don't know error can me. ???
warning: mysql_num_rows(): 58 not valid mysql result resource in /applications/mamp/htdocs/libraries/joomla/database/database/mysql.php on line 337
i
code: select all
$query = "select * jos_users id = {$user}";
$db =& jfactory::getdbo();
$db->setquery($query);
if ($db->geterrornum > 0){
echo "error: ";
echo $db->geterrormsg();
echo '<br>';
}
$aantal = $db->getnumrows();
if ($aantal < 1){
echo "there no users<br>";
}
else{
echo "total users: {$aantal}";
}
change $db->geterrornum $db->geterrornum()
it's function, not property.
it's function, not property.
Comments
Post a Comment