Micronutrients Supplement

Connect2DB()); $num_check_bs1 = mysql_num_rows($sql_check_bs1); if($num_check_bs1 > 0){ $userid = $_COOKIE['user_id']; echo $userid; }else{ $userid = $_SESSION['usains_user_id']; } $slc_check_bs = "SELECT prod_qty FROM basket WHERE basket_createby = '".$_COOKIE['user_id']."' AND prod_id = '".$_GET['prod_id']."'"; $sql_check_bs = mysql_query($slc_check_bs, $GLOBALS['objTranslator']->Connect2DB()); $num_check_bs = mysql_num_rows($sql_check_bs); if($num_check_bs > 0){ $upd_bs_qty = "UPDATE basket SET prod_qty = prod_qty+1, basket_updatedate = '".DATE_TODAY."', basket_updateby = '".$_COOKIE['user_id']."' WHERE prod_id = '".$_GET['prod_id']."' and basket_createby='".$_COOKIE['user_id']."'"; if(mysql_query($upd_bs_qty, $GLOBALS['objTranslator']->Connect2DB())){ if(isset($_GET['back']) && $_GET['back'] == "yes"){ echo""; }elseif(isset($_GET['backdet']) && $_GET['backdet'] == "yes"){ $protocol = strpos(strtolower($_SERVER['SERVER_PROTOCOL']),'https') === FALSE ? 'http' : 'https'; $uri = $protocol."://".$_SERVER['HTTP_HOST']. $_SERVER['REQUEST_URI']; $newurl = explode("&action=", $uri); echo""; }else{ echo""; } } } else{ $ins_bs = sprintf("INSERT INTO basket (prod_id, prod_qty, basket_createdate, basket_createby) VALUES (%s, %s, %s, %s)", GetSQL($_GET['prod_id'], "text"), GetSQL("1", "int"), GetSQL(DATE_TODAY, "text"), GetSQL($_COOKIE['user_id'], "text")); if(mysql_query($ins_bs, $GLOBALS['objTranslator']->Connect2DB())){ if(isset($_GET['back']) && $_GET['back'] == "yes"){ echo""; }elseif(isset($_GET['backdet']) && $_GET['backdet'] == "yes"){ $protocol = strpos(strtolower($_SERVER['SERVER_PROTOCOL']),'https') === FALSE ? 'http' : 'https'; $uri = $protocol."://".$_SERVER['HTTP_HOST']. $_SERVER['REQUEST_URI']; $newurl = explode("&action=", $uri); echo""; }else{ echo""; } } } } ?>
Connect2DB()); $num_check_qry=mysql_num_rows($check_qry_num); ?>
Connect2DB()); $num = mysql_num_rows($sql); for($i=0; $i<$num; $i++){ $row = mysql_fetch_assoc($sql); // check image if(!empty($row['prod_image'])){ $image = '';// class="img-polaroid" class="img-polaroid" href="#detail'.$row['prod_id'].'" data-toggle="modal" }else{ $image = '';// class="img-polaroid" class="img-polaroid" href="#detail'.$row['prod_id'].'" data-toggle="modal" } if (!empty($row['prod_url'])) { $ProductName = "".$row['prod_name'].""; } else { $ProductName = $row['prod_name']; } if(isset($_GET['uid']) && !empty($_GET['uid'])){ $protocol = strpos(strtolower($_SERVER['SERVER_PROTOCOL']),'https') === FALSE ? 'http' : 'https'; $uri = $protocol."://".$_SERVER['HTTP_HOST']. $_SERVER['REQUEST_URI']."&action=add&backdet=yes&prod_id=".$row['prod_id']; }else{ $uri = "index.php/products?prod_id=".$row['prod_id']."&action=add"; } ?>