MIT-Mobile-Web icon indicating copy to clipboard operation
MIT-Mobile-Web copied to clipboard

MySQL - Connection String

Open shanejordan opened this issue 14 years ago • 0 comments

All of the database is written using PDO, however the MySQL connection is not established with PDO. By not having a PDO connection, the prepare method keeps throwing an error.

In lib/db.php the connection for MySQL should be:

$this->connection = new PDO("mysql:host=$this->host;dbname=$this->db", $this->username, $this->passwd);

shanejordan avatar Jul 20 '11 16:07 shanejordan