Search in string ?
Posted: Mon Mar 27, 2006 4:22 am
Pimptastic | Please use
bot i cant search in the string bot all work bot not my "search.yahoo.com" string soe i hob i can be help here. i cant find help here ind denmark to it... soe i really hob i can be helpet here.
soe now ist my Questing
-------------------
Why work search.yahoo.com not ?
string ist search on: http://dk.search.yahoo.com/search?fr=fp ... meta=vc%3D
soe how can i get: p=pagedesign all work bot not yahoo.com search string.
-------------------
How can i search in the string if the "query" is last ind one string...
my string is: http://search.msn.dk/results.aspx?FORM= ... pagedesign
soe fx. q=pagedesign is the queary i wont get it.. i can't use $_GET[] becures ist variable andt not "HTTP GET" i use.
Pimptastic | Please use
Code: Select all
andCode: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
Hallo all i hav this codeCode: Select all
// Smider søge ord og type af søgemaskinen ind.
$SogeFelt = $_GET[Ref];
function GetSearchInfo($SearchName,$Search,$Query,$String) {
if (ereg($Search, $String)) {
preg_match($Query, $String, $match);
mysql_query("INSERT INTO search_words SET words = '". $String ."'");
if ($match[1] != "") {
mysql_query("INSERT INTO search_words SET words = '". $match[1] ."', search_engine = '". $SearchName ."'");
}
}
}
GetSearchInfo('Jubii' ,'search.jubii.dk' ,'/\query\=(.+?)\&/' ,$SogeFelt);
GetSearchInfo('Yahoo' ,'search.yahoo.com' ,'/p\=(.+?)\&/' ,$SogeFelt);
GetSearchInfo('MSN' ,'search.msn' ,'/\q\=(.+?)\&/' ,$SogeFelt);
GetSearchInfo('Eniro' ,'www.eniro' ,'/\q\=(.+?)\&/' ,$SogeFelt);
GetSearchInfo('Google' ,'www.google' ,'/\q\=(.+?)\&/' ,$SogeFelt);soe now ist my Questing
-------------------
Why work search.yahoo.com not ?
string ist search on: http://dk.search.yahoo.com/search?fr=fp ... meta=vc%3D
soe how can i get: p=pagedesign all work bot not yahoo.com search string.
-------------------
How can i search in the string if the "query" is last ind one string...
my string is: http://search.msn.dk/results.aspx?FORM= ... pagedesign
soe fx. q=pagedesign is the queary i wont get it.. i can't use $_GET[] becures ist variable andt not "HTTP GET" i use.
Pimptastic | Please use
Code: Select all
andCode: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]