session_start(); $ecom_link = mysql_connect($DB_Host , $DB_Username , $DB_Password) or die ("Couldn't connect to the ecom server."); $ecom_db = mysql_select_db($DB_Name,$ecom_link) or die ("Couldn't select the ecom database."); $myGlobal_Variables = Array(); $qry = "SELECT * FROM ecom_global_variables WHERE Customer='$Customer'"; $result = mysql_query($qry, $ecom_link) or die("Error in selecting global variables
" . mysql_error()); if($arow=mysql_fetch_array($result)) $myGlobal_Variables = $arow; mysql_free_result($result);//$paypal_url = "https://www.sandbox.paypal.com/cgi-bin/webscr"; $paypal_url = "https://www.paypal.com/cgi-bin/webscr"; function getProductCount($fun_cid) { GLOBAL $myProductCount; $qry = "SELECT * FROM ecom_product_categories WHERE Category_Id=$fun_cid"; $result = mysql_query($qry) or die("Error in selecting product categories
" . mysql_error()); $myProductCount += mysql_num_rows($result); mysql_free_result($result); $qry = "SELECT * FROM ecom_categories WHERE Parent_Category_Id=$fun_cid"; $result = mysql_query($qry) or die("Error in slecting child categories
" . mysql_error()); while($arow=mysql_fetch_array($result)) getProductCount($arow["Category_Id"]); mysql_free_result($result); } function getParentCategory($fun_cid) { $qry = "SELECT Parent_Category_Id FROM ecom_categories WHERE Category_Id=$fun_cid"; $result = mysql_query($qry) or die("Error in slecting parent category ids
" . mysql_error()); if($arow=mysql_fetch_array($result)) $fun_result = $arow["Parent_Category_Id"]; else $fun_result = 0; mysql_free_result($result); return $fun_result; } function isHard($fun_cart) { $myResult = false; for($i=0;$i" . mysql_error()); if($arow=mysql_fetch_array($result)) { if($arow["Product_Format"]=="Hard") $myResult = true; } mysql_free_result($result); } return $myResult; } function fsockPost($data) { GLOBAL $paypal_url; $web=parse_url($paypal_url); $postdata=""; foreach($data as $i=>$v) $postdata.= $i . "=" . urlencode($v) . "&"; $postdata.="cmd=_notify-validate"; if($web[scheme] == "https") { $web[port]="443"; $ssl="ssl://"; } else $web[port]="80"; $fp=@fsockopen($ssl . $web[host],$web[port],$errnum,$errstr,30); if(!$fp) echo "$errnum: $errstr"; else { fputs($fp, "POST $web[path] HTTP/1.1\r\n"); fputs($fp, "Host: $web[host]\r\n"); fputs($fp, "Content-type: application/x-www-form-urlencoded\r\n"); fputs($fp, "Content-length: ".strlen($postdata)."\r\n"); fputs($fp, "Connection: close\r\n\r\n"); fputs($fp, $postdata . "\r\n\r\n"); while(!feof($fp)) $info[]=@fgets($fp, 1024); fclose($fp); $info=implode(",",$info); } return $info; }echo "\n"; echo " \n\n"; echo "
"; Template Garden
Template Garden
Home Developers Area Check Out Contact  
SELECT A CATEGORY THAT BEST DESCRIBES YOUR BUSINESS:
High performance LOW COST
 
Email: Password: New User?
Forgot Password

Warning: mysql_query() [function.mysql-query]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (13) in /mounted-storage/home36a/sub001/sc28965-YOKW/templategarden.com/login.php on line 94

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /mounted-storage/home36a/sub001/sc28965-YOKW/templategarden.com/login.php on line 94
Error in selecting developers home page content