How can you check an empty database result and then make an action based this?
My code which puts matching result to the if -clause
while( $tags_and_Qid = pg_fetch_array( $result_tags )) {
// Add the Tag to an array of tags for that question
$end_array [ $tags_and_Qid['question_id'] ] ['tag'] [] = $tags_and_Qid['tag'];
}
if ( $end_array [ $tags_and_Qid['question_id'] ] ['tag'] == '' ) {
// Problem here!
header( "Location: index.php?"
. "no_question_found"
);
}