Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /rideanddrive/_classes/__base.php on line 45
我的代码:
public static function SelectSpecific($obj, $data_base, $cond)
{
self::$query = "select $obj from " . self::$baseprefix . "$data_base where $cond
在我的PHP应用程序中,我让Sentry跟踪一些不明确的异常,并且我注意到了来自PDO的一个特殊的隐异常。代码如下所示:
/**
* @return boolean TRUE if the connection to the database worked; FALSE otherwise.
*/
public function verifyDatabase() {
try{
$this->pdo->query('SELECT 1');
return true;