jrws Posted December 23, 2008 Share Posted December 23, 2008 Hey guys, wow I have a lot of problems. Anyway this particular one is about registration. So basically my user class extends the mysql class which is as its name suggests, about mysql functions. Anyway so a function called register is not working it is saying Fatal error: Call to undefined function clean() in D:\xampp\xampp\htdocs\Website\v1\lib\classes\user.php on line 22 So, what is confusing me is that I thought functions could call functions as long as they exist somewhere? So yeah, if there is any particular code you need ask as I do not know what code to post. And thanks again for helping me. Quote Link to comment https://forums.phpfreaks.com/topic/138118-solved-oop-problem/ Share on other sites More sharing options...
jrws Posted December 23, 2008 Author Share Posted December 23, 2008 Wait NM, I am probaly one of the stupidest people. I forgot I need to add $this-> when using a function with OOP Quote Link to comment https://forums.phpfreaks.com/topic/138118-solved-oop-problem/#findComment-722015 Share on other sites More sharing options...
trq Posted December 23, 2008 Share Posted December 23, 2008 my user class extends the mysql class Why? Users have nothing to do with mysql. Quote Link to comment https://forums.phpfreaks.com/topic/138118-solved-oop-problem/#findComment-722021 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.