Bonjour, j'ai un probleme avec cette requete

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
 
<?php
 
define ("DB_DNS_login_1_29_2", "mysql:host=localhost;dbname=login_1_29_2");
define ("DB_DNS_website", "mysql:host=localhost;dbname=website");
 
class mysql extends PDO {
 
	private static $_instance;
	private static $_instance_Website;
 
	public function __construct( ) {
 
	}
 
	public static function getInstance() {
 
		if (!isset(self::$_instance)) {
 
			try {
				self::$_instance = new PDO(DB_DNS_login_1_29_2, 'root', '');
 
			} catch (PDOException $e) {
 
				echo $e;
			}
		} 
		return self::$_instance; 
	}
 
	public function getInstanceWebsite()
	{
		if (!isset(self::$_instance_Website))
		{
			try {
 
				self::$_instance_Website = new PDO(DB_DNS_dofus_website, 'root', '');
 
			} catch (PDOException $e) {
 
				echo $e;
			}
		}
		return self::$_instance_Website;
	}
}
?>
Pouvez vous m'aider svp ?

thx