I know my code works as I use it to pull from the yahoo database with ease. My problem with this other search engine is their variable data as shown in the example xml code.
The Subset of results is Site
They use a Site index=“1” and that is where I don’t know how to call that subset without creating loops which defeats the whole purpose of reading xml to begin with.
You can look at the example xml live at http://www.sharedfeed.com/7search_example.xml
[php]
$search_url = simplexml_load_file(“7search_example.xml”);
foreach ($search_url->results->site as $search_url_info)
{
$url = $search_url_info->url;
$title = $search_url_info->name;
$description = $search_url_info->description;
$bid = $search_url_info->bid;
$dispurl = $search_url_info->httplink;
$data = "INSERT INTO database SET id=’’, url=’$url’, title=’$title’, description=’$description’, bid=’$bid’, dispurl=’$dispurl’, keyword=’$keywords’, time=’’ ";
$data_result = mysql_query($data);
}
[/php]
[php]
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?> [/php]