For some reason the following script closes the browser window. Its like 50% done right now and the code is still rough and not refined - but I just don't see what i am doing to make the browser window close without any warning??
<?
include 'includes/profilelist.php'; //has the unlisted variables
$rotation_count="0";
$db = mysql_connect("localhost", "username", "pass");
mysql_select_db("mwdnbc_apps",$db);
if (isset($listtype)) {
$result = mysql_query("SELECT * FROM artist_audio ORDER BY downloads DESC",$db); //
} else {
$result = mysql_query("SELECT * FROM artist_audio ORDER BY downloads DESC",$db); //
}
$bottom_profiles= "";
//SQL Query
//Retrive $myrow array
while ($myrow = mysql_fetch_row($result)) {
//Retrieve needed array values
$id= "$myrow[id]";
$username= "$myrow[username]";
$file_type= "$myrow[file_type]";
$file_style= "$myrow[file_style]";
$media_type= "$myrow[media_type]";
$media_author= "$myrow[media_author]";
$media_label= "$myrow[media_label]";
$media_album= "$myrow[media_album]";
$media_title= "$myrow[media_title]";
$media_date= "$myrow[media_date]";
$media_rate= "$myrow[media_rate]";
$media_image= "$myrow[media_image]";
$comments= "$myrow[comments]";
$downloads= "$myrow[downloads]";
$enabled= "$myrow[enabled]";
$points= "$myrow[points]";
if ($enabled=="pending") {
} else {
if ($enabled=="frozen") {
} else {
if ($enabled=="removed") {
} else {
$rotation_count= ($rotation_count+1);
if ($rotation_count=="1") {
$topartist_image01="$image_start01$image$image_end01";
$topartist_name_location01="$sfont Artist: <a href=ViewAudio.php?audio_id=$id>$artist</a><br>Location: $city, $state$efont";
$topartist_bio01="$sfont2$bio";
}
if ($rotation_count=="2") {
$topartist_image02="$image_start01$image$image_end01";
$topartist_name_location02="$sfont Artist: <a href=ViewAudio.php?audio_id=$id>$artist</a><br>Location: $city, $state$efont";
$topartist_bio02="$sfont2$bio";
}
if ($rotation_count=="3") {
$topartist_image03="$image_start01$image$image_end01";
$topartist_name_location03="$sfont Artist: <a href=ViewAudio.php?audio_id=$id>$artist</a><br>Location: $city, $state$efont";
$topartist_bio03="$sfont2$bio";
}
if ($rotation_count>"3") {
$bottom_profiles= "$bottom_profiles\n<tr>
<td><div align=center><font size=2 face=Arial>$rotation_count</font></div></td>
<td><font size=2 face=Arial><a href=ViewAudio.php?audio_id=$id>$media_author - $media_title</a></font></td>
<td><div align=center><font size=2 face=Arial>$file_type</font></div></td>
<td><font size=2 face=Arial></font></td>
<td><div align=center><font size=2 face=Arial></font></div></td>
</tr>";
}
}
}
}
}
end;
?>