hi...
i have this error in my code
Fatal error: Call to undefined method myclass::addCat() in G:\AppServ\www\society\Admin\addCat.php on line 23
this is aclass function
function addCat($t1)
{
mysql_query("insert into categories (Categoriesname)values ('$t1')") or die(mysql_error());}
and this aline have a error
if (isset($_POST['but1']))
{ $t1=$_POST['txt1'];
$m= new myclass();
$m->addCat($t1);
}
I dont no where is the problem???