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 -

ios - Apple Push Notifications + TestFlight + Enterprise wildcard provisioning profile -

android - Drag and drop in ScrollView -