0byt3m1n1
Path:
/
var
/
www
/
listcrawler.app
/
public_html
/
cron
/
[
Home
]
File: check-duplicate.php
<?php ini_set('max_execution_time', 0); require '../db.php'; $chk_duplicate = "SELECT REPLACE(REPLACE(list_title, '\r', ''), '\n', '') as lt, COUNT(REPLACE(REPLACE(list_title, '\r', ''), '\n', '')) as ct FROM lists GROUP BY lt HAVING COUNT(lt) > 1 "; $geResult = mysqli_query($conn, $chk_duplicate); $count = mysqli_num_rows($geResult); echo "<br><b>List Of Duplicate Records</b><br><br>"; echo "<table border='1' width='80%'>"; echo"<tr><th width='80%'>List Title</th><th>Count</th></tr>"; if ( $count > 0) { while ($row = mysqli_fetch_assoc($geResult)){ echo "<tr><td>" . $row["lt"] . "</td><td>" . $row["ct"]. "</td><tr>"; } } else { echo"<tr><td colspan='2'>No duplicate records found</td></tr>"; } echo "</table>";