MySQL Forums
Forum List  »  PHP

Re: Unable to create a database due to syntax error
Posted by: Peter Brawley
Date: September 11, 2016 01:17PM

Is line 11 this one?

$conn = new PDO("mysql:host='localhost';dbname='myDBPDO'", "root", "patony";

As already explained in another thread on this subject, the right side is missing a closing parenthesis.

Options: ReplyQuote


Subject
Written By
Posted
Re: Unable to create a database due to syntax error
September 11, 2016 01:17PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.