I have one database wrapper class. How should I use this class object to execute query in other class?
$liveresellerdb=new Database('host','user','spswd','db'); $fetch = $liveresellerdb->getResult($select_resellerData); How should I include the database object in my one class?
Class one { function a (){ $sql="select * from table "; //how should i execute here my query i mean to say //every time i can't create the new object // i want to know the good method by which i just execute the query by // giving the database name } }