ok so I have a script that produces a list of clients in a database works fine - I have added a search box in an if statement if (isset($_GET['search'])) {
php question
4
ok so I have a script that produces a list of clients in a database works fine - I have added a search box in an if statement
if (isset($_GET['search'])) {
$entry = $_GET['search'];
then I query the db and search for records according to the $entry
}
issue is down here under that if statment I have the normal query that brings back all the clients so what I'm getting when I search is the searched record + all the rest if I die(); in the if statement then obviously the page is messed up.. how can I get it to just show the searched records and how do you go about clearing the search to return to the normal records
if (isset($_GET['search'])) {
$entry = $_GET['search'];
then I query the db and search for records according to the $entry
}
issue is down here under that if statment I have the normal query that brings back all the clients so what I'm getting when I search is the searched record + all the rest if I die(); in the if statement then obviously the page is messed up.. how can I get it to just show the searched records and how do you go about clearing the search to return to the normal records
- KirkMcD
- solidsoul
- Tradeout
Next Topics on Trending Feed
-
4