In this nineth slide, we disconnect from the database.
1. DISCONNECT
#Disconnect from the database
#Disconnect
$rc=$sth->finish;
$rc=$dbh->disconnect;
print "\n<body>\n<html>";
}
2. PROGRAM DESCRIPTION:
The first line calls the finish method on the statement object.
The second line calls the disconnect method on the databse object.
The third line prints the statement.
The fourth line closes the main block.
|