hi guys .
i have editted a file that is used for mms which gets the file .i want it to use on my uploaders
prob i have is some ppl mainly ppl with phones are only getting the main menu link and not the file that they clicked on . it works fine for me on all my browsers and even my ****ty old nokia phone lol .
think its something to do with headers and i need a lil help fixing it.
heres the code
cheers
i have editted a file that is used for mms which gets the file .i want it to use on my uploaders
prob i have is some ppl mainly ppl with phones are only getting the main menu link and not the file that they clicked on . it works fine for me on all my browsers and even my ****ty old nokia phone lol .
think its something to do with headers and i need a lil help fixing it.
heres the code
PHP Code:
<?php
include("../web/config.php");
include("../web/core.php");
$conms = mysql_connect($dbhost,$dbuser,$dbpass);
$condb = mysql_select_db($dbname);
$file = $_GET["file"];
$sid = $_GET["sid"];
$file = mysql_fetch_array(mysql_query("SELECT filename, uid from ibwf_mp3 WHERE id='".$file."'"));
$uid = mysql_fetch_array(mysql_query("SELECT uid FROM ibwf_ses WHERE id='".$sid."'"));
$uid = $uid[0];
if ($file[1] == $uid){
header("Location: files/".$file[0]);
}
else{
header("Content-type: text/html");
echo "<html><a href=\"index.php?action=main&sid=$sid\">Main Menu</a></p></html>";
}
?>
Comment