<div class=" profile">
		<?php
		error_reporting(0);
		
				
				include('db/db.php');
				$user = $_SESSION['email'];
				$get_customer = "select * from admin where email='$user'";
				$run_customer = mysqli_query($con, $get_customer);
				
				$t_img = "SELECT * FROM images_table";
				$count_img = mysqli_query($con,$t_img);
				$count_all_img = mysqli_num_rows($count_img);
				
				$t_video = "SELECT * FROM video";
				$count_video = mysqli_query($con,$t_video);
				$count_all_video = mysqli_num_rows($count_video);

				
				$row_customer = mysqli_fetch_array($run_customer);
					
					$c_id 		= $row_customer['id'];
					$name 		= $row_customer['name'];
					$email       = $row_customer['email'];
					$contact	= $row_customer['mobile'];
					$pro_img	= $row_customer['a_image'];		
					
					$date = date('l jS \of F Y h:i:s A');		
			?>			
			<div class='profile-bottom'>
			<h3><i class='fa fa-user'></i>Profile</h3>
			<div class='profile-bottom-top'>
			<div class=col-md-4 profile-bottom-img' >
			
				<?php
				if(!$pro_img){
						     echo"<img src='images/avatar-150x150.png
							 ' style='width:150px;border-radius:100%;'>";
						}else{
							echo"<img src='images/$pro_img' style='width:150px;border-radius:100%;'>";
						}
				?>		
			</div>
			<div class='col-md-8 profile-text'>
				<h6><?php echo $name; ?></h6>
				<table>
				<tr>
				<td>Email</td>
				<td> :</td>
				<td><a href='#'><?php echo $email; ?></a></td>
				</tr>
				<tr>
				<td>Mobile</td>
				<td> :</td>
				<td><?php echo $contact; ?></td>
				</tr>
				<tr>
				<td>Country </td>
				<td>:</td>
				<td> India</td>
				</tr>
				<tr>
				<td>Member Since </td>
				<td>:</td>
				<td><?php echo $date; ?></td>
				</tr>
				</table>
			</div>
			<div class='clearfix'></div>
			</div>
			<div class='profile-bottom-bottom'>
			<div class='col-md-4 profile-fo'>
				<h4><?php echo $count_all_img; ?></h4>
				<p></p>
				<a href='#' class='pro'><i class='fa fa-camera'></i>Photos</a>
			</div>
			<div class='col-md-4 profile-fo'>
				<h4><?php echo $count_all_video; ?></h4>
				<p></p>
				<a href='#' class='pro1'><i class='fa fa-play'></i>Videos</a>
			</div>
			<div class='col-md-4 profile-fo'>
				<h4><?php $handle = fopen("counter_text.txt", "r"); if(!$handle){ echo "could not open the file" ; } else { $counter = (int ) fread($handle,20); fclose ($handle);  echo" <strong> ". $counter . " </strong> " ; $handle = fopen("counter_text.txt", "w" ); fwrite($handle,$counter) ; fclose ($handle) ; } ?></h4>
				<p></p>
				<a href='#'><i class='fa fa-eye'></i>Visitors</a>
			</div>
			<div class='clearfix'></div>
			</div>
			<div class='profile-btn'>

                <button type='button' href='#' class='btn bg-red' data-toggle='modal' data-target='#myModal'>Edit Profile</button>
           <div class='clearfix'></div>
			</div>
			 
			
		</div>
	</div>