AdamDrechsel/PHP-inlamning — Issue #3: Problem med dbcx.php filen!
Author: AdamDrechsel
Created: 2012-03-05 19:46:42+00:00
State: open

får ett error när jag försöker skicka upp informationen till min db när man registrerar ett account:

Warning: PDO::__construct() expects parameter 1 to be string, array given in C:\Users\HP\Dropbox\php\html\PHP-inlamning\dbcx.php on line 28

object(Exception)#2 (7) {
["message":protected]=>
string(54) "PDO kunde inte instansieras, uppkopplingen misslyckad."
["string":"Exception":private]=>
string(0) ""
["code":protected]=>
int(0)
["file":protected]=>
string(51) "C:\Users\HP\Dropbox\php\html\PHP-inlamning\dbcx.php"
["line":protected]=>
int(30)
["trace":"Exception":private]=>
array(1) {
[0]=>
array(4) {
["file"]=>
string(60) "C:\Users\HP\Dropbox\php\html\PHP-inlamning\register-user.php"
["line"]=>
int(4)
["function"]=>
string(4) "dbcx"
["args"]=>
array(0) {
}
}
}
["previous":"Exception":private]=>
NULL
}