How can I take the value from the query array result set and story it in another variable this was my attempt:
$countEps = Singlequery('SELECT COUNT(1) AS num_eps FROM items WHERE name = :name',
array('name' => $_GET['name'], ), $conn);
// Store the number of episodes
$ep = $num_eps;
This is what the query returns:
Array ( [0] => Array ( [num_eps] => 15 ) )
$countEps[0]['num_eps']