0

我该如何解决这个警告?

        <?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);
       ?>
4

0 回答 0