Forum Moderators: coopster
I have decided to write my own authorization class. So, I allready have MySQL class that I use for all of my MySQL needs. But now I need to access some of the functions from MySQL class while running my Auth class.
auth.class.php and mysql.class.php files are located in a directory on my webserver.
How do I access lets say: $mysql->insert_function() from my $auth->register_user() function?
Thanks!
For example, you might be using the authorization class to authenticate a user and then you might be using another class to allow them access to a certain group of methods or procedures which also require a database connection, a shopping cart perhaps. Both the authorization and shopping cart classes would invoke the db connection via the singleton factory and only a single connection to the database is made.
Unknown error type: [2048] Non-static method Database::query_insert() should not be called statically, assuming $this from incompatible context
Unknown error type: [8] Undefined property: Auth::$preFatal error: Call to undefined method Auth::escape() in /htdocs/serv/includes/Database.class.php on line 232
Where should I look for some good info on PHP classes? I really do need a lot of explanation :)