beginTransaction(); $connection->exec($approveSql); $_SESSION["friendshipreqs"]=$friends->numFriendshipRequests($person,$connection); $incomingRequests = $friends->incomingRequests($person,$connection); $friendCloud = $friends->getFriendCloud($person,$connection); $connection->commit(); echo "friendship requests (".$_SESSION["friendshipreqs"].")\n"; echo $friendCloud."\n".$incomingRequests; ?>