Help for this page

Select Code to Download


  1. or download this
    $mysql->disconnect() ;
    $sth = $mysql->prepare(...) ;
    ......
    
  2. or download this
    $sth = $mysql->prepare(...) ;
    if ( ! $sth-execute() ) { # connection lost ?
           # reconnect
    }