$cat_id = $tempe; ?>
$DB_SERVER="localhost";
$DB_NAME="armstation_net";
$DB_USER="arm";
$DB_PASS="cooggcH7";
@$link=mysql_pconnect($DB_SERVER,$DB_USER,$DB_PASS) or die(mysql_error());
@mysql_select_db($DB_NAME,$link) or die(mysql_error());
$sql_query = "SELECT prd_id, prd_name, prd_price FROM nbc_inventory WHERE cat_id = '$cat_id' AND prd_name LIKE '%$input_brand%' ORDER BY prd_name";
//$sql_query = "SELECT product_id, product_family, product_catagory, product_name, product_descript, product_ref FROM dbms_product WHERE product_family LIKE '%$product_family%' AND product_catagory LIKE '%$product_catagory%' AND product_ref LIKE '%$product_ref%' ORDER BY product_created DESC" ;
// ----- 一頁顯示幾筆資料 ----- //
$need = 20;
$result = @mysql_query($sql_query) or die(mysql_error());
$kk = mysql_num_rows($result) ;
if (empty($num_want)) { $num_want = 1 ;} ;
$num = ceil($kk / $need - 0.00000001) ;
$first_in = $need * ($num_want - 1) ;
$result_fin = mysql_query($sql_query." limit ".$first_in.",".$need) ;
$show_num = mysql_num_rows($result_fin) ;
$res = mysql_query("SELECT cat_id, cat_name FROM nbc_catagory WHERE cat_id = '$cat_id'",$conn);
$row = mysql_fetch_row($res);
list($cat_id2, $cat_name2) = $row;
?>
$tempe = $cat_id ?>
if($kk != 0) { ?>
Product Section
$cat_id = $tempe;
if($PHP_SELF == "/armkit/content.php")
{
?>
$tempe = $cat_id;
}
}
?>

$res = mysql_query("SELECT cat_id, cat_name FROM nbc_catagory WHERE cat_parent=''",$conn);
while($row = mysql_fetch_row($res))
{
list($cat_id, $cat_name) = $row;
?>
> echo $cat_name ?>
$res2 = mysql_query("SELECT cat_id, cat_name FROM nbc_catagory WHERE cat_parent = '$cat_id'",$conn);
while($row2 = mysql_fetch_row($res2))
{
list($cat_id2, $cat_name2) = $row2;
?>
- > echo $cat_name2 ?>
}
?>
} ?>
|
Customer Service
Payment Gateway

  
|
$cat_id = $tempe; ?>
$temp = $HTTP_SERVER_VARS[REQUEST_URI];
session_register(temp);
?>
$res = mysql_query("SELECT cat_id, cat_name FROM nbc_catagory WHERE cat_parent = '$tempe'",$conn);
$temp_result = mysql_num_rows($res);
if($temp_result > 0)
{
?>
| Catagory Select |
$res = mysql_query("SELECT cat_id, cat_name FROM nbc_catagory WHERE cat_parent = '$tempe'",$conn);
$i = 3;
while($row = mysql_fetch_row($res))
{
list($cat_id, $cat_name) = $row;
if($i%3==0 && $i != 3)
{
echo " ";
}
?>
| > echo $cat_name ?> |
$i++; } ?>
} ?>
| echo $tempd ?> |
|
|
while($row=mysql_fetch_array($result_fin))
{
?>
> &mode=prd_resize> |
echo $row[prd_name] ?>
$price = $row[prd_price] / 7.78;
$price = round($price, 2);
?>
Unit Price: US$ echo $price ?>
>More Detail > |
 |
 |
} ?>
include_once("page_footer.php"); ?> |