File manager - Edit - /home/cipherteam/htdocs/cipherteam.in/admin/API/GetChat.php
Back
<?php if($_GET['id']) { require_once("Connection.php"); $sql = "SELECT `msg_table`.`msg_id` AS 'ID',`msg_table`.`client_id` AS 'C_ID',`msg_table`.`msg_status` AS 'STATUS',`msg_table`.`txt_msg` AS 'TXT_MSG',`msg_table`.`img_msg` AS 'IMG_MSG',`msg_table`.`msg_type` AS 'MSG_TYPE',`msg_table`.`send_by` AS 'SEND_BY' FROM `msg_table`,`client_table` WHERE `msg_table`.`client_id` = `client_table`.`client_id` AND `client_table`.`client_id` = ".$_GET['id']; $rows = $con->query($sql); if($rows->num_rows > 0) { $Chats["Chats"] = array(); while($row = $rows->fetch_assoc()) { $Chat = array(); $Chat = $row; array_push($Chats["Chats"],$Chat); } $Chats["success"] = 1; } else { $Chats["success"] = 0; } echo json_encode($Chats); } ?>
| ver. 1.4 |
Github
|
.
| PHP 8.2.9 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings