Preview of what im talking about http://neversoft-rs....t.php?item=rune
<?php
$item = $_GET['item'];
$search = file_get_contents("http://www.zybez.net/priceguide.php?search_terms=".$item."&search_area=1&price_low=&price_high=&member=1&all_prices=true&sortby=price&sort=DESC&ppage=50");
preg_match_all("/<td class=\"tablebottom\">([^<]+?)<\/td>/", $search, $price);
preg_match_all("/<td class='tablebottom'>([^<]+?)<\/td>/", $search, $itemname);
$max = 100;
$min = 0;
$before = array("Zybez is screwing up our parser because we don't credit them. ^_^", "http://www.zybez.net");
$after = array($null, $null);
while($max >= $min)
{
echo 'Item: '.$itemname[1][$min].' Price: '.str_replace($before, $after, $price[1][$min]);
echo "\n\r";
echo "<br>";
$min++;
}
?>
Edited by Jonpopnycorn, 19 November 2006 - 02:46 PM.
