Hello
I have a mysql_connectio n class, I think I don't need to post it here, inside it has a __construct() for connecting to db and basically everything works.
What I want is to use - I have a variable $db = new mysql_db() - this variable in other classes. Right now I'm using the method that I declare class again, but then I have problem with getting data, because I'm getting errors like:
I have a mysql_connectio n class, I think I don't need to post it here, inside it has a __construct() for connecting to db and basically everything works.
What I want is to use - I have a variable $db = new mysql_db() - this variable in other classes. Right now I'm using the method that I declare class again, but then I have problem with getting data, because I'm getting errors like:
Code:
mysql_query(): supplied argument is not a valid MySQL-Link res...
Comment