php涓嬩佳鐢≒DO卒涘 slowly sqlite3鏁版偁搴揰PHP鏁欑▼ | 宁涔嫔

WBOY
Release: 2016-07-13 17:51:45
Original
1499 people have browsed it

Jinqin1锛?br /> 1 Uncaught exception 'PDOException' with message 'could not find driver
1. 鎵撳紑php.ini齂囦欢
1 extension=php_pdo.dll
鍚屾椂鍘绘帀
1 extension=php_pdo_sqlite.dll
2. View apache 鏈嶅姟
3. 缂栧Kei嬭瘯浠g爜

01 02 echo "creating a databse n";
03 try {
04      $dbh=new PDO('sqlite:voting.db');
05      $dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
06      $dbh->exec('
07     CREATE TABLE tally(
08       QID varchar(32) NOT NULL,
09       AID integer NOT NULL,
10 votes integer NOT NULL,
11 PRIMARY KEY(QID,AID)
12     )');
13      www.2cto.com
14 
15 } catch (Exception $e) {
16    echo "error!!:$e";
17 exit;
18 
19 }
20 echo "db created successfully!";
21 ?>
4. 鎴欬姛锛?/p>
jeffsui

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/478159.htmlTechArticle閿欒1锛?1Uncaught exception PDOException with message could not find driver 1.鎵撳紑php.ini锂囦欢 1extension=php_pdo.dll 鍚屾椂鍘绘帀 1extension=php_pdo_sqlite.dll 2.View the apach...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!