No content should be sent to the browser before using php header() redirection. You can try javascript redirection instead if headers already sent.
if( mysql_num_rows( $qselect ) === 0 )
{
echo "";
exit;
}
But I am not sure javascript redirects are search engine friendly