exit query
| From: | Mark Milaszkiewicz | Date: | Thu, 16 Aug 2001 23:25:18 +0000 |
| Subject: | exit query | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-11466@lists.php.net to get a copy of this message | ||
hiya. i'm currently working on a really basic search function for my website
and am using this code
trim($searchterm);
if (!$searchtype || !$searchterm)
{
echo "You have not entered any details. Please go back and try again.";
exit;
}
to make sure that the user is entering a search into the box.
However, if i leave the exit off, it displays everything from the database,
but if i leave it in, it doesn't put in the rest of the html file that i
want it to,
how can i make it skip the rest of the php within the document (so
displaying no results from the database)
Cheers in advance
Marky