EditAdd Team

Success! Content successfully added.
"; echo ''; } else { $message = "
Error! Problem uploading Content.
"; } } if(!empty($_POST['btnedit'])=="Save Changes") { $team_title= mysqli_real_escape_string($conn,$_POST['team_title']); $team_sub_content= mysqli_real_escape_string($conn,$_POST['team_sub_content']); $social_icon= mysqli_real_escape_string($conn,$_POST['social_icon']); $team_content= mysqli_real_escape_string($conn,$_POST['team_content']); if($_FILES['team_image']['name']) { $team_image = time() . '_' . $_FILES['team_image']['name']; $destination = '../upload/team/' . $team_image; move_uploaded_file($_FILES['team_image']['tmp_name'], $destination); } else { $team_image=$_POST['team_image_prv']; } //echo "UPDATE `tm_team` SET `team_title`='$team_title',`team_image`='$team_image',`restaurant_id`='$restaurant_id' WHERE `id`='".$_REQUEST['team_id']."'"; //die; $update_sql= mysqli_query($conn,"UPDATE `tm_team` SET `team_title`='$team_title',`team_image`='$team_image',`team_content`='$team_content',`team_sub_content`='$team_sub_content',`social_icon`='$social_icon' WHERE `id`='".$_REQUEST['team_id']."'"); if ($update_sql) { $message = "
Success! Content updated successfully.
"; echo ''; } else { $message = "
Error! Problem updating Content.
"; } } ?>
window.location='index.php'"; exit; } ?>