File manager - Edit - /home/autoph/tmp/public_html/pms_v1/userguide/table-of-content.php
Back
<?php include_once("../../../cfg/conn.php"); error_reporting(0); if(isset($_POST['pmsAction'])){ $count = 0; $infCanvass = $_POST['infCanvass']; $start = $_POST['start']; $limit = $_POST['limit']; if($infCanvass=='' || $infCanvass == null){ $getAreaList = "SELECT * FROM `table-of-content` WHERE `deleted`='0' AND `content_title`!='' ORDER BY `sequence` ASC LIMIT $start, $limit"; }else{ $getAreaList = "SELECT * FROM `table-of-content` WHERE `deleted`='0' AND `content_title` LIKE '%$infCanvass%' || `deleted`='0' AND `content_desc` LIKE '%$infCanvass%' ORDER BY `sequence` ASC LIMIT $start, $limit"; } //$getAreaList = "SELECT * FROM `pms_area_tbl` WHERE deleted ='0'"; $getArea = mysqli_query($conn,$getAreaList); $statRow = mysqli_num_rows($getArea); echo "<table class='w-100' data-toggle='modal' data-target='#contentData'>"; echo "<thead>"; echo "<th class='col-1'>NO</th>"; echo "<th class='col-3'>PROCESS / FEATURES</th>"; echo "<th class='col-8'>DESCRIPTION</th>"; echo "</thead>"; if($statRow > 0){ while($row = mysqli_fetch_array($getArea)){ $count = $count + 1; ?><tr onclick="javascript:getInfo(this);" ><?php echo "<td >".$row['id'] ."</td>"; echo "<td >".$row['content_title']."</td>"; echo "<td >".$row['content_desc']."</td>"; echo "<tr>"; } } echo "</table>"; $conn->close(); } ?>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings