我该如何解决此警告?
<?php
$dir = 'sqlite:/home/ravi/public_html/db/FavoriteApps.db';
$dbh= new PDO($dir) or die("cannot open the database");
$query = "SELECT * from app_category";
foreach ($dbh->query($query) as $row)
{
$strName = $row[1];
error_log("". $strName );
}
sqlite_close( $dbh);
?>