Hi all
I have a function that queries URLS for certain keywords, but at present it stops after the first 10
I want it to be able to carry on for as many as i require
so lets say 1000
$start is the variable that denotes the starting point
How do i get it to loop, so that it keeps doing it for
$start =10 then 20 etc right up to 1000
the function is
function query($topic, $start = 0)
{
$googlelist = $this->query("Google", $topic, $start);
$yahoolist = $this->query("Yahoo", $topic, $start);
$this->found = array_unique(array_merge($googlelist, $yahoolist));
$this->counts = array("yahoo" => count($yahoolist), "google"=> count($googlelist), "total" => count($this->found));
return true;
}