• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 856
  • Last Modified:

php pdo mysql connection script

what is a simple php script to test if pdo connection to mysql host,dbname,username,password is working
0
rgb192
Asked:
rgb192
1 Solution
 
Ray PaseurCommented:
Check the examples here.  
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/PHP_Databases/A_11177-PHP-MySQL-Deprecated-as-of-PHP-5-5-0.html

Since we cannot embed anchor points into the articles, you'll want to scan the text for "uncaught connect" to find the example.
0
 
rgb192Author Commented:
connection works

great example with var_dump
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now