Topic might sound confusing.. but basiclly here is the short set up.
class_mysql.php - mysql functions
class_login.php - check sessions/logins functinos
config.php
config.php basiclly sets a new mysqlclass and sets it some varibles and connects it(using the class from class_mysql.php)
so, $mydb = new class_mysql;
now, in my login class, i want to be able to access $mydb and use it functions. I dont want to reintilize all the varibles and the class.
basiclly i want to use just a single mysql connection everywhere(config.php gets loaded the first thign everywhere)
So how would I go on having class_login.php use the class mysql which was set from config.php
ty guys
both files get included in config.php