Php Pdo For Mysql Driver |
||
Welcome to the Zymic webmaster forums. Our forums are here to provide people the free ability to discuss a range of websites related topics such as design, development coding and marketing.
In order to post you will need to register for a zymic account or if you already have one simply login by using the form on the left.
Zymic Webmaster Forums Web Design & Development Server Side Scripting PHP |
||
Php Pdo For Mysql Driver |
||
Mar 2 2010, 04:12 AM
Post
#1
|
|
|
Newbie ![]() Group: Members Posts: 1 Joined: 2-March 10 Member No.: 132,791 |
Hi,
I am new to zymic, and everything was fine until now..but I am wondering why is there no support for MySQL PDO? the phpinfo() shows that sqlite, sqlite2 are available.. how come no mysql? "PDO drivers sqlite2, sqlite " And this is the error I get on my site: "on line 32 Failed to get DB handle In oo_db_class : could not find driver " Have any timming ZYMIC open the PDO Driver for MySql ? Thank you for the help. |
|
|
![]() |
Mar 8 2010, 05:27 PM
Post
#2
|
|
![]() Newbie ![]() Group: Members Posts: 7 Joined: 8-March 10 From: France Member No.: 133,562 |
You just have to do that :
CODE $bdd = new PDO('sqlite:host='.$host.';dbname='.$dbname, $user, $pass);
|
|
|
![]() |
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users) |
||
| 0 Members: | ||
Forum Jump |
||
| Lo-Fi Version | Time is now: 24th May 2013 - 05:47 PM |