GIF89a php
Current File : /home/hencockfreshchic/public_html/app/callMsg.php
<?php
ob_start();
ini_set('error_reporting', E_STRICT);
include("connect.php");
include("libs.php");
mysqli_set_charset($conn,'utf8');
date_default_timezone_set('Asia/Kolkata');

$frnd_id=$_GET['frnd_id'];
$my_id=$_GET['my_id'];
$checkSum=$_GET['checkSum'];

updateSeen($conn,$frnd_id,$my_id,$checkSum);

$sql="SELECT * FROM `chat` WHERE `chksum`='".$checkSum."'";
$rs=mysqli_query($conn,$sql);
while($row=mysqli_fetch_array($rs)){
?>
				<?php if($row['my_id']==$my_id){  ?>
				<div class="message sent">
                  <?php echo $row['msgg']; ?>
                  <span class="metadata">
                      <span class="time"><?php echo $row['timee']; ?></span>
                      <!-- send and unSeen  -->
                      <?php if($row['seen']=="1"){  ?>
                      <span class="tick"><img src="images/seen.png" /></span>
                  	  <?php } else { ?>                     
                      <span class="tick"><img src="images/unseen.png" /></span>
                      <?php } ?>
                     
                  </span>
                </div>
                 <?php } else { ?>  
                 
                <div class="message received">
                  <?php echo $row['msgg']; ?>
                  <span class="metadata"><span class="time"><?php echo $row['timee']; ?></span></span>
                </div>

<?php } } ?>