update number in sql pdo php not working

Solutions on MaxInterview for update number in sql pdo php not working by the best coders in the world

showing results for - "update number in sql pdo php not working"
Micaela
23 May 2019
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