 |
|
include_once("fpgfiles/product_title.php");
//include_once("menu/index.php");
?>
|
|
include_once("fpgfiles/cart_box.php");
?>
|
 |
|
include_once("fpgfiles/mailbox.php");
?>
|
|
include_once("fpgfiles/searchbox.php");
?>
|
|
|
|
|
|
|
include("shopping2/includes/db.php");
include("shopping2/includes/functions.php");
if($_REQUEST['command']=='add' && $_REQUEST['productid']>0){
$pid=$_REQUEST['productid'];
$ID=$_GET['Id'];
addtocart($pid,1);
include("fpgfiles/add_msg1.php");
exit();
}
?>
$select_main_product="select * from main_product where mp_id='$mpid'";
$res_main_product=mysql_query($select_main_product);
if(!$res_main_product){
echo mysql_error();
exit;
}
while($row_main_product=mysql_fetch_array($res_main_product)){
$main_product_name=$row_main_product[main_product_name];
$mp_id=$row_main_product[mp_id];
}?>
$select_sub_product="select * from sub_product where sp_id='$_GET[Id]'";
$res_sub_product=mysql_query($select_sub_product);
if(!$res_sub_product){
echo mysql_error();
exit;
}
while($row_sub_product=mysql_fetch_array($res_sub_product)){
$sub_product_name=$row_sub_product[sub_product_name];
$sp_id=$row_sub_product[sp_id];
echo"
";
}
?>
$select_all_product="select * from products where sp_id='$_GET[Id]'";
$res_all_product=mysql_query($select_all_product);
if(!$res_all_product){
echo mysql_error();
exit;
}
$i=1;
echo"
";
while($row_all_product=mysql_fetch_array($res_all_product)){
echo"
|
| ";
if($i==4){
ECHO" ";
$i=0;
}
$i=$i+1;
}?>
|
|
|
|
|
 |
$selbranimg="select * from brands where 1";
$resbrandimg=mysql_query($selbranimg);
while($rowbrandimg=mysql_fetch_array($resbrandimg)){
$logobrand_img=$rowbrandimg[brand_img];
$logobrand_name=$rowbrandimg[brand_name];
$logobrandid=$rowbrandimg[brandid];
?>

}?>
|
|
|
include_once("../fpgpanel/files/dbc.php");
$fconect="select * from conect_link where coid='1'";
$res_fconect=mysql_query($fconect);
if(!$res_fconect){
echo mysql_error();
exit;
}
while($row_fconect=mysql_fetch_array($res_fconect)){
$facebookt=$row_fconect[colink];
//echo $facebookt;
}
$yconect_link="select * from conect_link where coid='2'";
$res_yconect_link=mysql_query($yconect_link);
if(!$res_yconect_link){
echo mysql_error();
exit;
}
while($row_yconect_link=mysql_fetch_array($res_yconect_link)){
$youtube=$row_yconect_link[colink];
}
$twconect_link="select * from conect_link where coid='3'";
$res_twconect_link=mysql_query($twconect_link);
if(!$res_twconect_link){
echo mysql_error();
exit;
}
while($row_twconect_link=mysql_fetch_array($res_twconect_link)){
$twitter=$row_twconect_link[colink];
}
?>
|