0) { $breeder_res_array = array(); for ($count=0;$count<$num_results;$count++) { $row = mysql_fetch_array($result); $breeder_res_array[$count] = $row; } $Success = true; mysql_free_result($result); // free breeder results } } else { echo "Not a valid MySQL resourse - invalid query
"; } mysql_close(); } else { echo "Database connection failed
"; } if ($Success) { $location_array = array(); $location_count = 0; for ($count=0; $count<$num_results; $count++) { $row = $breeder_res_array[$count]; $Location = $row["Location"]; $Location = stripslashes($Location); if (!InLocationList($Location,$location_array)) { $location_array[$location_count] = $Location; $location_count ++; } } if ($location_count > 0) { ?>

AlpacaSeller.com

Packages of Alpacas For Sale

"; echo " | "; echo ""; for ($count=0; $count<$location_count; $count++) { echo ""; echo $location_array[$count]; echo ""; if ($count < ($location_count - 1)) { echo " | "; } } echo " | "; echo ""; shuffle($breeder_res_array); echo "
"; for ($count=0; $count<$location_count; $count++) { echo "
"; echo ""; echo $location_array[$count]; echo "  "; echo "(Back To Top)"; echo "
"; echo "
"; for ($count1=0;$count1<$num_results;$count1++) { $row = $breeder_res_array[$count1]; $Location = $row["Location"]; $Location = stripslashes($Location); if ($Location == $location_array[$count]) { echo "
"; $BreederID = $row["BreederID"]; $BreederName = $row["BreederName"]; $ContactName = $row["ContactName"]; $Telephone = $row["Telephone"]; $Email = $row["Email"]; $Country = $row["Country"]; $Description = $row["Description"]; $PackageName = $row["PackageName"]; $PackageType = $row["PackageType"]; $PackageBreedType = $row["PackageBreedType"]; $PackageColour = $row["PackageColour"]; $Price = $row["Price"]; $FormatPrice = $row["FormatPrice"]; $BreederName = stripslashes($BreederName); $ContactName = stripslashes($ContactName); $Telephone = stripslashes($Telephone); $Description = stripslashes($Description); $PackageName = stripslashes($PackageName); $Description = stripslashes($Description); GetCorrectCurrencyForCountry($Country,$Currency); GetCurrencySymbol($Currency,$Symbol); echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; if ($Email) { echo ""; echo ""; echo ""; echo ""; } echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; if ($Description) { echo ""; echo ""; echo ""; echo ""; } if ((float)$Price != 0.0) { echo ""; echo ""; echo ""; echo ""; } echo "
"; echo "Breeder/Farm Name:"; echo ""; echo "$BreederName"; echo "
"; echo "Contact Name:"; echo ""; echo "$ContactName"; echo "
"; echo "Telephone Number:"; echo ""; echo "$Telephone"; echo "
"; echo "Email:"; echo ""; $url = "http://www.alpacaseller.com/ContactBreeder.php?BreederID=$BreederID&Language=EnglishInt"; echo ""; echo "Click Here To Contact"; echo ""; echo "
"; echo "Package Name:"; echo ""; echo "$PackageName"; echo "
"; echo "Package Type:"; echo ""; echo "$PackageType"; echo "
"; echo "Package Breed Type:"; echo ""; echo "$PackageBreedType"; echo "
"; echo "Package Colour:"; echo ""; echo "$PackageColour"; echo "
"; echo "About this package:"; echo ""; echo nl2br($Description); echo "
"; echo "Price:"; echo ""; echo "$Symbol$FormatPrice ($Currency)"; echo "
"; echo "
"; echo "
"; } } } ?>