connect_errno > 0) { echo "Query No Bueno\n"; } else { $sql = "SELECT * FROM blog_posts INNER JOIN team_members ON blog_posts.team_member_id=team_members.member_id ORDER BY time"; $query_result = $session->query($sql); $blog_iter = 0; while ($row = new_fetch_assoc($query_result) ) { $blogs[$blog_iter] = $row; $blog_iter++; } $session->commit(); $session->autocommit(TRUE); $session->close(); } // override fetch_assoc() and have it perform fetch_assoc() // only if the object is not empty, otherwise return empty array function new_fetch_assoc($query_result) { $response = $query_result->fetch_assoc(); if(is_null($response)) { $response = array(); } return $response; } ?> Blog - Branch App
"; echo "

Branch

"; echo "
"; $date = new DateTime($value["time"]); echo "
"; echo "

", $value["title"], "

"; echo ""; echo ""; echo "
"; echo "
"; echo $value["post_text"]; echo "
"; echo "
"; ?>