1 Replies - 789 Views - Last Post: 04 November 2014 - 04:17 AM Rate Topic: -----

#1 Niraj7878   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 23
  • Joined: 09-October 14

Fatal error: Call to undefined method Gallery::

Posted 04 November 2014 - 03:40 AM

Fatal error: Call to undefined method Gallery::get_gallerycat() in D:\Tanvi\rb\db_access\Gallery.php on line 3

[code]

function GetChildCategory($gallerycat_id=0 , $line = '', $cnt1='', $Selected ='') 
	{
		$category = $this->get_gallerycat($gallerycat_id); // this line getting error.
		$cnt = count($category);
		
		if($cnt)
		{
			for ($i = 0; $i < $cnt; $i++)
			{			
				$sel = ($gallerycategory[$i]['gallerycat_id']==$Selected) ? ' selected="selected"' : '';
				$str1 .= '<option value="' . $gallerycategory[$i]['gallerycat_id'] . '" ' . $sel . '>' . $line . ' '. $category[$i]['gallerycat_name'] . '</option>';
				$str1 .= $this->GetChildCategory($gallerycategory[$i]['gallerycat_id'],$line.'&nbsp;&nbsp;&nbsp;', $cnt1,$Selected);
			}
		}
		return($str1); 
	}
[/code]

Is This A Good Question/Topic? 0
  • +

Replies To: Fatal error: Call to undefined method Gallery::

#2 Dormilich   User is offline

  • 痛覚残留
  • member icon

Reputation: 4219
  • View blog
  • Posts: 13,353
  • Joined: 08-June 10

Re: Fatal error: Call to undefined method Gallery::

Posted 04 November 2014 - 04:17 AM

looks like the Gallery class doesn’t have a get_gallerycat() method.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1