pasan4you Posted May 18, 2014 Share Posted May 18, 2014 need cooments wht is done frm these key words $conn = new PDO('mysql:host='.DB_HOST.';port='.DB_PORT.';dbname='.DB_NAME,DB_USER,DB_PASS); $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); Link to comment Share on other sites More sharing options...
thescientist Posted May 20, 2014 Share Posted May 20, 2014 Without knowing the context, DB_HOT, DB_PORT, DB_NAME, DB_USER, and DB_PASS could likely defined as constants somewhere else in your code/ http://www.php.net/manual/en/language.constants.php Or just placeholder values depending on if you got this from a tutorial. If you do a search using your text editor, you should be able to find where they are defined. If you can't find them, then you should just substitute your own values instead of the placeholders. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now