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

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -