![]() |
![]() |
shankar from vizag |
![]()
Post
#1
|
Advanced Member ![]() ![]() ![]() ![]() Group: Members Posts: 202 Joined: 18-June 13 Member No.: 19,316 ![]() |
Greetings,
I am having two php pages. 1) filesearch.php 2)filedelete.php filesearch.php is attached. <!--filedelete.php contains the following --> <?php $link = mysqli_connect("localhost","root",""); mysqli_select_db($link,"stores_bgts"); $id = $_GET['id']; $q = "DELETE FROM `filetrack` WHERE id = $id"; mysqli_query($link,$q); header('location:filesearch.php'); ?> In filesearch.php, I had 3 buttons, one is search and the other two are delete and update. while clicking search button, somehow with an input attribute I manage to display input values after search button click. Whereas, clicking on any of the delete, update refreshing the input values. I just want to display the remaining records searched after deleting the opted record. But the delete query executing and redirecting to filesearch.php and there all records searched are refreshed. Kindly guide me to fix this issue. Thanks in advance. Attached File(s) ![]() |
![]() ![]() |
![]() |
Lo-Fi Version | Time is now: 15th June 2024 - 09:18 AM |