1<?php
2include("php-includes/check-login1.php");
3
4echo $username;
5$profile = "0";
6require_once("config/pdo.php");
7$data = [
8 'profile' => $profile,
9 'username' => $username,
10
11];
12$sql = "UPDATE customer SET photoup=:profile WHERE mmob=:username";
13$stmt= $conn->prepare($sql);
14$stmt->execute($data);
15 if($stmt){
16 echo "success";
17 //echo '<script>window.location.assign("memhome.php");</script>';
18 }
19
20
21else
22{
23echo "error";
24}
25
26
27?>
28