-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchatuserlist.php
22 lines (21 loc) · 1003 Bytes
/
chatuserlist.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
session_start();
include("dbconnection.php");
$sqlstudentchat ="SELECT * FROM student WHERE status=Active AND student_id != $_SESSION[student_id]";
if(isset($_GET[txtstudent]))
{
$sqlstudentchat =$sqlstudentchat . " AND student_name LIKE %$_GET[txtstudent]%";
}
$qsqlstudentchat = mysqli_query($con,$sqlstudentchat);
while($rsstudentchat = mysqli_fetch_array($qsqlstudentchat))
{
?>
<div class="chat-box-online-left" style="cursor:pointer;" onClick="loaduserchat(<?php echo $rsstudentchat[student_id]; ?>)" >
<!--<i style="right: 0; color:#CCC; vertical-align:middle;" class="fa fa-circle" aria-hidden="true" ></i>-->
<img src="studentimages/<?php echo $rsstudentchat[student_img]; ?>" class="img-circle" /><?php echo $rsstudentchat[student_name]; ?>
<!--( <small>Active from 3 hours</small> ) -->
</div>
<!-- <hr class="hr-clas-low" /> -->
<?php
}
?>