uploading an image into a database php : Am trying to insert a data into a database.This is the code that am using. It inserts all the data except the image(Pic) any help?


	public function insert($hey){

		try {

			$hey = $this->db->query("INSERT INTO addmember(Pic,Firstname,Lastname,Age,Gender,Phonenumber,Location,Member,Department) VALUES('".$hey['pic']."','".$hey['fname']."','".$hey['lname']."','".$hey['age']."','".$hey['gender']."','".$hey['phone']."','".$hey['loc']."','".$hey['group']."','".$hey['department']."')");
			
		} catch (PDOException $e) {
			
			echo $e->getMessage();
		}
	}
