include("includes/top.html");
$db = mysql_connect("lawnmowe.ipowermysql.com", "lawnmowe_mowers", "vultron1") or die("Could not connect.");
if(!$db)
die("");
if(!mysql_select_db("lawnmowe_mowers",$db))
die("");
if (isset($_GET['model'],$_GET['brand'])){
$model = $_GET['model'];
$brandurl = $_GET['brand'];
$brand = str_replace("_", " ", $brandurl);
$result = mysql_query("SELECT * FROM mowers where model='$model' and brand='$brand' ORDER BY horse ");
echo"
".$brand." ".$model." Lawn Mower
";
include("includes/header.html");
echo "".$brand." ".$model."
";
?>
}else{}
if (!$result)
{echo mysql_error()."";
exit();
}else
{echo" ";
while ( $row = mysql_fetch_array($result) )
{
$pic="http://www.lawnmowerfacts.com/images/mowers/".str_replace(' ','_',$row['brand'])."/".$row['model'].".jpg";
echo" |
Brand | ".$row['brand']." | Series | ".$row['name']." | Power | ".$row['horse']."hp | Engine | ".$row['engine']." | Deck | ".$row['deck']."\" ".$row['decktype']." | Warranty | ".$row['warranty']." | Mulch | ".$row['mulch']." | Bag | ".$row['bag']." | Side Discharge | ".$row['side']." |
|     ".$row['description']." | ";
echo" |
";
}
echo"
";
}
$ebaybrandurl = str_replace(" ", "+", $brandurl);
echo "Find the ".$brand." ".$model." on Ebay";
include("includes/modelsfooter.html");
?>