PHP/PDO: How to get the current connection status -


what pdo equivalent of:

mysqli_stat($dbconn); 

p.s. use (get message to) make sure connected

i cannot credit answer. posted answer, he/she latter deleted entry.

here's (saved archived) answer question:

$status = $conn->getattribute(pdo::attr_connection_status); 

Comments

Popular posts from this blog

node.js - StackOverflow API not returning JSON -

python - Subclassed QStyledItemDelegate ignores Stylesheet -

php - Laravel 4.1 to Heroku: SQLSTATE[HY000] [2002] No such file or directory -