Zymic Forums

Webmaster resources

Zymic IRC Server

Chat in real time at irc.zymic.com - Learn More

Welcome

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.

left Zymic Webmaster ForumsZymic Free Web HostingDatabases & MySQL right
  Reply to this topic Start new topic
left right
PhoenixRe
post May 7 2012, 07:54 PM
Post #1


Newbie
*

Group: Members
Posts: 2
Joined: 7-May 12
Member No.: 240,960



Hi, I am trying to launch my webpage but first I have to test it out and decided to go with a free service for starters. This is the only service I found where allows user creation and privileges settings but when I tested some scripts I got an error...
The think is I am using the PDO layer for whatever reasons but I am not sure if it is enabled...
So, can anyone answer me and if it's not, is there any way to enable it. All my php scripts are written using it and since it's a database based web page I use it A LOT...

Thanks for any help in advance...

By the way just to be sure that this is the problem here is the little script I tested

CODE
<?php

$db = 'XXXXXX_clanteam_XXXXX';
$dbhost = 'localhost';
$username = '718174_siteguest';
$password = '1q@W3e$R5t^Y7u';

    global $dbhost, $username, $password;
    $dsn = "mysql:dbname={$db};host={$dbhost}"; //
    
    try {
        $dbcnx = new PDO($dsn, $username, $password);
    }
    catch (PDOExsception $e) {
        error('Couldn\'t problems...'.$e->getMessage());
    }

    $query = $dbcnx->prepare("SELECT * FROM game_slot WHERE game_date='2012-05-10' AND field<3");
    $flag = $query->execute();
    if( $flag === false ) {
        print_r($query->errorInfo());
        error('Heh');
    }
    
    $result = $query->fetchAll(PDO::FETCH_ASSOC);
    print_r($result);
?>


and the print out

Fatal error: Uncaught exception 'PDOException' with message 'could not find driver' in /www/clanteam.com/X/X/X/XXXXXX/htdocs/index.php:12 Stack trace: #0 /www/clanteam.com/X/X/X/XXXXXX/htdocs/index.php(12): PDO->__construct('mysql:dbname=fu...', '718174_sitegues...', '1q@W3e$R5t^Y7u') #1 {main} thrown in /www/clanteam.com/X/X/X/XXXXXX/htdocs/index.php on line 12
Go to the top of the page 
 
  + Quote Post
ssfdre38
post May 7 2012, 11:43 PM
Post #2


THE SILENT FORUM NINJA
*******

Group: Administrators
Posts: 3,708
Joined: 23-January 10
From: on your screen
Member No.: 127,507



PDO overall is not enable and wont be for a while
Go to the top of the page 
 
  + Quote Post
PhoenixRe
post May 8 2012, 08:15 AM
Post #3


Newbie
*

Group: Members
Posts: 2
Joined: 7-May 12
Member No.: 240,960



Oh.. shame...
Out of curiosity how come?
Go to the top of the page 
 
  + Quote Post
ssfdre38
post May 8 2012, 03:50 PM
Post #4


THE SILENT FORUM NINJA
*******

Group: Administrators
Posts: 3,708
Joined: 23-January 10
From: on your screen
Member No.: 127,507



i dont know
Go to the top of the page 
 
  + Quote Post
 Reply to this topic Start new topic
left right
0 Members:
left right
 


Lo-Fi Version Time is now: 23rd May 2013 - 08:42 PM