Hi
Heres my code:
[code=php]
<?
$files = $_POST[‘movie’];
$id = $_POST[‘id’];
$title = $_POST[‘title’];
$date = $_POST[‘date’];
$filepath = $_POST[‘filepath’];
if (empty($files)) {
$query = mysql_query(“UPDATE movie_manage
SET name=’$title’, date=’$date’ WHERE id=’$id'”);
echo ‘<BR>   <font face=arial size=2><b>Thank you!<BR>   Your Movie Remains at: ‘.$filepath.'<BR>   With The Title Changed to ‘.$title.’ and to be displayed on ‘.$date.'<BR></b></font>’;
} else {
$uploaddir = ‘/hsphere/local/home/tanner/tannercreative.com/quest/files/’;
$uploadfile = $uploaddir . $id . basename($_FILES[‘movie’][‘name’]);
$file = basename($_FILES[‘movie’][‘name’]);
move_uploaded_file($_FILES[‘movie’][‘tmp_name’], $uploadfile);
$filepath = ‘/files/’.$file.”;
$query = mysql_query(“UPDATE movie_manage
SET name=’$title’, date=’$date’, file=’$filepath’ WHERE id=’$id'”);
echo ‘<BR>   <font face=arial size=2><b>Thank you!<BR>   Your Edit Movie: ‘.$file.’ is uploaded to ‘.$filepath.'<BR>   With The Title Changed to ‘.$title.’ and to be displayed on ‘.$date.'<BR></b></font>’;
}
?>
Basically what i want it too do is… if the $files is empty has no content… then it should display the information below it… that works fine… but if there is content in $files it just does the first one again… for some reason its not going to the else.
Thanks for any help
Aaron