Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
hey guys i have a search engine and i want to filter some words here is part of the code that i think i need to change or add something to like say if i wanted to filter out two words like car and golf how would i add it thanks
}Code: Select all
$q = $_GET[q];
$category_id = $_GET[category_id];
$stype = $_GET[stype];
$page = $_GET[page];
if (empty($q) and empty($category_id)) {
echo "Enter at least 1 keyword, or pick a category.";
}
else {
$q = @str_replace("_"," ",$q);
if (empty($page)) {
$page = "1";
$offset = "0";
}feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
[quote="[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1"][b]2.[/b] Use descriptive subjects when you start a new thread. Vague titles such as "Help!", "Why?" are misleading and keep you from receiving an answer to your question.[/quote]