hi there iam with some problems with the getfile.php 
When i upload the file it goes to the pre configured folder
but it doesnt show it and a cant download it someone could help me?
heres the script
	
							
						
					When i upload the file it goes to the pre configured folder
but it doesnt show it and a cant download it someone could help me?
heres the script
PHP Code:
	
	
<?
////////////////DB Details/////////////////
$dbname = "....";                     //change to your mysql database name
$dbhost = "localhost";                              //database host name
$dbuser = "....";                        //database user name
$dbpass = "....";        
//////////////////////////////////////////
$conms = mysql_connect($dbhost,$dbuser,$dbpass);
$condb = mysql_select_db($dbname);
session_start();
$_SESSION['sid']=$sid;
$fileid = $_GET["fileid"];
    $file = mysql_fetch_array(mysql_query("SELECT filename, touid FROM mms WHERE id=$fileid"));
    $uid = mysql_fetch_array(mysql_query("SELECT uid FROM fun_ses WHERE id='".$sid."'"));
        $uid = $uid[0];
    if ($file[1] == $uid){
    header("Location: mmsloads/".$file[0]);
    }
    else{
        header("Content-type: text/html");
        echo "<html><p>This file is not yours!<br/><a href=\"index.php?action=main\">Main Menu</a></p></html>";
    }
?>




 
							
						
Comment