how to avoid the or neglect the retriving image while inserting into the phpmyadmin in php : hi guys i am new to php and i am getting Could not retrieve image: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax but i dont want to retrive the image i want avoid it so..so how to fix it...  thank you in advance




       if(!isset($_SESSION["username"])){

        header("location:index.php");
        }
      if(!empty($_SESSION['uid'])){$uidval=$_SESSION['uid'];}
    $uidval="";

       if((isset($_GET['user_avatar']))&&(!empty($_GET['user_avatar']))){

     $user_avatar = $_GET['user_avatar'];	
    }

 
	  $getImage=mysqli_query($db, "SELECT user_avatar FROM user where 
     uid=".$uidval) or die("Could not retrieve image: " .mysqli_error($db));
 
	$path=mysqli_fetch_assoc($getImage) or die("Could not fetch array : " 
     .mysqli_error($db));
 

