if ($dbh->ping()) { $sth = $dbh->prepare('SELECT ...'); $sth->execute(); ... } else { $dbh = DBI::connect(...); }
In reply to Re^2: mysql_auto_reconnect
by BMaximus
in thread mysql_auto_reconnect
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |