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

Alpaca Stud Services

"; 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"]; $AlpacaName = $row["AlpacaName"]; $BreedType = $row["BreedType"]; $Proven = $row["Proven"]; $Colour = $row["Colour"]; $PriceInHouse = $row["PriceInHouse"]; $PriceOutHouse = $row["PriceOutHouse"]; $PriceDriveBy = $row["PriceDriveBy"]; $FormatPriceInHouse = $row["FormatPriceInHouse"]; $FormatPriceOutHouse= $row["FormatPriceOutHouse"]; $FormatPriceDriveBy = $row["FormatPriceDriveBy"]; $PrizesWon = $row["PrizesWon"]; $DOBUnixTimeStamp = $row["DOBUnixTimeStamp"]; $RegisteredWith = $row["RegisteredWith"]; $BreederName = stripslashes($BreederName); $ContactName = stripslashes($ContactName); $Telephone = stripslashes($Telephone); $Description = stripslashes($Description); $AlpacaName = stripslashes($AlpacaName); $PrizesWon = stripslashes($PrizesWon); $Description = stripslashes($Description); $RegisteredWith = stripslashes($RegisteredWith); $DOBDateFormated = date("jS F Y",$DOBUnixTimeStamp); 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 ($RegisteredWith) { echo ""; echo ""; echo ""; echo ""; } if ($PrizesWon) { echo ""; echo ""; echo ""; echo ""; } if ((float)$PriceInHouse != 0.0) { echo ""; echo ""; echo ""; echo ""; } if ((float)$PriceOutHouse != 0.0) { echo ""; echo ""; echo ""; echo ""; } if ((float)$PriceDriveBy != 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 "Alpaca Name:"; echo ""; echo "$AlpacaName"; echo "
"; echo "Breed Type:"; echo ""; echo "$BreedType"; if ($Proven) { echo " (Proven Alpaca Stud)"; } echo "
"; echo "Alpaca Colour:"; echo ""; echo "$Colour"; echo "
"; echo "Date of Birth:"; echo ""; echo "$DOBDateFormated"; echo "
"; echo "About this alpaca:"; echo ""; echo nl2br($Description); echo "
"; echo "Organisations Registered With:"; echo ""; echo nl2br($RegisteredWith); echo "
"; echo "Prizes Won:"; echo ""; echo nl2br($PrizesWon); echo "
"; echo "On Farm Fee:"; echo ""; echo "$Symbol$FormatPriceInHouse ($Currency)"; echo "
"; echo "Mobile Mate Fee:"; echo ""; echo "$Symbol$FormatPriceOutHouse ($Currency)"; echo "
"; echo "Drive By Fee:"; echo ""; echo "$Symbol$FormatPriceDriveBy ($Currency)"; echo "
"; echo "
"; echo "
"; } } } ?>