I am using the following query
function footGames()
{
    global $database;
    $q = "SELECT name FROM ".TBL_GAME." WHERE active = '1' AND type = 'soccer'";
    return mysql_query($q, $dat开发者_JS百科abase->myConnection);
}
The $database->myConnection is the following
function myConnection() {
   return $this->connection;
}
$database is the class that myConnection is in.
Any ideas why the footGames method isn't working?
Thanks
myConnection is a function, you need to call it (note the parentheses):
return mysql_query($q, $database->myConnection());
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论