//$price = "988.25"; ?> include('includes/connect.php'); ?> $query = mysql_query("SELECT status FROM emergency"); while ($row = mysql_fetch_array($query)) { $status = $row['status']; } if ($status == "on") { // scrape for price $url = "http://dgcsc.org/goldprices.xml"; $ch = curl_init(); curl_setopt ($ch, CURLOPT_URL, $url); curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/5.001 (windows; U; NT4.0; en-us) Gecko/25250101"); curl_setopt ($ch, CURLOPT_HEADER, 0); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); $result = curl_exec ($ch); curl_close ($ch); $newlines = array("\t","\n","\r"); $content = str_replace($newlines, "", $result); $start = strpos($content,'USD">'); $end = strpos($content,'',$start) + 8; $table = substr($content,$start,$end-$start); $table = str_replace('USD">', "", $table); $table = str_replace('', "", $table); print ""; $price = (($table * 31.1033) + 25) * 1.02; } ?>
|

|
PAMP SUISSE 1 OZ GOLD BARS
A GREAT HEDGE AGAINST INFLATION
if ($status == "on") { ?> Shipping for one bar is $15.00 to anywhere in the Contiguous United States. Please contact (410) 342-1400 if you wish to purchase more than one Pamp Suisse 1 oz bar, or would like a discount for paying by check. Disclaimer: Due to fluctuating gold markets, prices change rapidly. While we will do our best to honor the displayed price, we reserve the right to cancel any order. For security reasons, after you place your order, we will call to confirm. For other payment options, please contact us by phone at (410)342-1400. Thank you! } else if ($status == "off") { ?> Please call (410) 342-1400 to place an order. } ?> |
Cohler Enterprises, Inc. 101 North Haven St. Baltimore, MD 21224
Phone: 410-342-1400 | Fax: 410-558-1816 | Email: cohlerent@aol.com
Copyright © 1997-2008 Cohler Enterprises, Inc. All rights reserved.