Php code ends with blank screen
<p>I have this PHP code, I am validating and fetch query accordingly.. but though my query is firing but it ends with blank screen. I have commented the location with <code>die()</code>;</p>

<pre><code>for ($z = 0; $z &lt; count($track); $z++) {
    if ( in_array($track[$z], $already_track)) {
        $at_key = array_search($track[$z], $already_track);
        $a = explode(":", $artist[$z]);
        $b = explode(":", $already_artist[$at_key]);
        $array_compared = array_diff($a, $b);

        if (empty($array_compared)) {
            continue;
        } else {
            $sql = mysql_query("INSERT INTO tracklist(aid, sid, rid, added_by, added_on) VALUES('".$album."', '".$track[$z]."', '".$artist[$z]."', '".$_SESSION["userkey"]."', '" . $time . "' )") or die(mysql_error());
            //die("Yes Here"); //My code output blank screen after this query. Though query fired successully.
        }
    } else {
        $sql = mysql_query("INSERT INTO tracklist(aid, sid, rid, added_by, added_on) VALUES('".$album."', '".$track[$z]."', '".$artist[$z]."', '".$_SESSION["userkey"]."', '" . $time . "' )") or die(mysql_error());
    }
}
</code></pre>
