Hello,
Im trying to create a database of games and found a site that already has it, So im trying to grab the name of a game based on what i type, Here is what ive currently got:
<?php
if($_POST['r_name']) {
$lines = file_get_contents("http://www.ds-scene.net/?s=releases&s2=2&o=a&f8=$_POST[r_name]");
preg_match("|<td class=\"romlistpad\"><div align=\"left\" class=\"romlistTxt\"><a href=\"/(.*?)\" title=\"(.*?) \"><b>(.*?)</b></a><br /><span class=|s", $lines, $name);
$gamename = $name[3];
echo $gamename;
}
?>
It grabs the name fine however it only grabs one, How can i make it get several names with one search?