| Server IP : 192.169.170.185 / Your IP : 216.73.216.97 Web Server : Apache System : Linux p3plmcpnl495852.prod.phx3.secureserver.net 4.18.0-553.52.1.lve.el8.x86_64 #1 SMP Wed May 21 15:31:29 UTC 2025 x86_64 User : akhilnew ( 1712764) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/akhilnew/public_html/medicinepaper.net/admin/inc/ |
Upload File : |
<?php
if($option === 'delete'):
if($idcount > 0):
for($i = 0; $i < $idcount; $i++):
$id = $dataid[$i];
$stmt = $mysqli->prepare("SELECT * FROM $table WHERE $firstcol = ? LIMIT 1") or die(output($mysqli->error));
$stmt->bind_param('i', $id);
$stmt->execute();
$stmt->store_result();
$count_rows = $stmt->num_rows();
$stmt->close();
if($count_rows > 0):
$stmt = $mysqli->prepare("DELETE FROM $table WHERE $firstcol = ? LIMIT 1") or die(output($mysqli->error));
$stmt->bind_param('i', $id);
$e = $stmt->execute();
$stmt->close();
if($e):
$text = 'Content has been deleted.';
$stat = TRUE;
else:
die(output('Content has not been deleted.'));
endif;
else:
die(output('Content is not found.'));
endif;
endfor;
die(output(array('text' => $text, 'stat' => $stat)));
else:
die(output('Nothing selected.'));
endif;
elseif($option === 'downloademails'):
$fn->download_emails($dataid);
else:
die(output('No valid action found.'));
endif;
?>