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
Post a Comment