dmolsen / MIT-Mobile-Web

The Mobile Web Project was initially developed during the summer of 2009 and is a fork of the original v0.9 release of the MIT Mobile Web project that can still be found on SourceForge. The project was updated in May 2010. It is a product designed to make it easier for higher education institutions to deliver mobile-optimized information and services. It helps deliver task-based content like maps, events, and directory information optimized for device "families." Full documentation can be found at http://mobilewebosp.pbworks.com/ Updates to the project can be found on Twitter at http://twitter.com/mobilewebosp/
http://mobilewebosp.pbworks.com
MIT License
57 stars 19 forks source link

MySQL - Connection String #21

Open shanejordan opened 13 years ago

shanejordan commented 13 years ago

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);