The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

shankar from vizag
post May 11 2019, 08:49 AM
Post #1

Advanced Member

Group: Members
Posts: 156
Joined: 18-June 13
Member No.: 19,316


I am having two php pages. 1) filesearch.php 2)filedelete.php

filesearch.php is attached.

<!--filedelete.php contains the following -->
$link = mysqli_connect("localhost","root","");

$id = $_GET['id'];
$q = "DELETE FROM `filetrack` WHERE id = $id";


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)
Attached File  filesearch.php ( 3.52k ) Number of downloads: 287
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Reply to this topicStart new topic
post May 12 2019, 08:55 PM
Post #2

Programming Fanatic

Group: Members
Posts: 1,654
Joined: 27-April 13
From: Edinburg, Texas
Member No.: 19,088

I 'think' you want to display the original search results after clicking on delete or update button instead of doing a new search, which is what is happening now.

Do I understand correctly?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


- Lo-Fi Version Time is now: 15th September 2019 - 12:39 AM