prepare("SELECT pgn FROM results WHERE md5=?"); $stmt->bind_param('s', $_GET['id']); $stmt->execute(); $results = $stmt->get_result(); $row = $results->fetch_assoc(); print $row['pgn']; exit;