area include("includes/html-header.php"); ?>

Search4CarParts.com

Firstly, set your country so we only find parts that can be sent to you.

"; // Country from cookie // This page from PHP_SELF // Need to add the query string somehow here // if ($_SERVER['QUERY_STRING']) // $newpage = "/" . encode_url($_SERVER['QUERY_STRING'], 0); $country_name = display_flags( $newpage, $country, 8, 1); } if ($country != "") { $maker = $_GET['maker']; if (!$maker) $maker = $_COOKIE['maker']; // Country is set, show makers if ($maker == "") { echo "

Please select your car make

"; display_makers($newpage, $maker); } } if ($maker != "") { // Model always only from cookie $model = $_COOKIE['model']; if (($model == "") || ($model == 999)) { echo "

Please select your car model

"; display_models($newpage, $model, $maker); } } if (($maker) && ($country) && ($model != 999) && ($model != "")) { // Ok, list the searches echo "

Sponsored Link: Top Secret Car Secret*** Buy Cars 50% - 90% off

"; echo "

Click on one of the searches below to perform the search. The results will open in a new tab or window
"; $tbl_columns = 3; $tbl_col_width = 160; echo "\n

"; for ($i=0;$i<$tbl_columns;$i++) echo ""; echo "\n"; $i = 0; $first = 1; $query = "SELECT * from search,search_maker_link WHERE search.id = search_id AND ((maker_id = $maker) OR (maker_id = 0)) ORDER BY `order`, 'name'"; $sql = mysql_query($query); if ($sql != TRUE) { echo "

SQL query failed: " . mysql_errno() . ": " . mysql_error() . "


"; echo "

Query was $query

"; } while ($row=mysql_fetch_array($sql)) { if ($row[group] != 0) { // This is a heading not a search if ($first == 0) // end the row echo "\n"; $first = 0; // Put out the heading echo "\n"; $i = 0; } else { echo ""; $i++; if ($i == $tbl_columns) { $i = 0; echo "\n"; } } } echo "
 
"; echo $row[name]; echo "
$row[name]

"; } ?>

Sponsored Link: Top Secret Car Secret*** Buy Cars 50% - 90% off