MIT-Mobile-Web
MIT-Mobile-Web copied to clipboard
MySQL - Connection String
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);