Neep help with PHP
Posted: Wed Jul 14, 2010 10:07 am
Hello i am making a social website for cyclist and got this bit of php code with a package i got and i have checked it but i uploaded it and i get the error below the script can anybody help been trying to figure it out all day
email me @ : djcrosby101@hotmail.co.uk
skype : djcrosby2
Cheers
function getLanguages()
{
$this->db->select('lang_code, lang_name');
$this->db->from('languages');
$langQuery = $this->db->get();
$languages = array();
if ($langQuery->num_rows() > 0)
{
foreach ($langQuery->result_array() as $langRow)
{
$languages[] = $langRow;
}
}
return $languages;
Please respond to this threadFatal error: Call to a member function num_rows() on a non-object in /home/a9433674/public_html/threehundredandsixty/application/models/applicationmodel.php on line 89
email me @ : djcrosby101@hotmail.co.uk
skype : djcrosby2
Cheers