I have a sample script written using CodeIgniter and I used JQuery's $.get() function. $.get() called this PHP script: delete.php
$id = $_GET['id'];
$conn = mysqli_connect('localhost', 'root', '', 'table1');
$qry = "delete from table1 where id = $id";
$qry_result = mysqli_query($conn, $qry);
How I call delete.php in JQuery: $.get("delete.php", { id : my_id} );. My problem is that delete.php was not executed by $.get(). I am thinking if the cause was due to CodeIgniter's security that you cannot access the scripts directly?
Please help!
mysqli_*in Codeigniter?mysqli, my site is configured to run this version but the query / PHP script is working fine.