 |
include("userpass.php3");
mysql_connect ($host, $users, $password) or die ("File not found");
mysql_select_db ($database);
$results = mysql_db_query ($database, "select * from typepro order by type");
while ($rows = mysql_fetch_array ($results)) {
?>
 |
|
}
$chk = mysql_free_result($results);
mysql_close;
?>
|
|
 |
|
 |
| |
Order
Products |
|
| |
|
|
| |
กรุณาเลือกรายการสินค้าที่ต้องการสั่งซื้อข้างล่างนี้ |
|
| |
|
No |
Model |
Product |
Price |
|
$nno=1;
$result = mysql_db_query ($database, "select * from product where (type='$type') order by product");
while ($row = mysql_fetch_array ($result)) {
if($userdea){
$price=$row['priceb'];
} else {
$price=$row['pricea'];
}
?>
|
echo $nno;$nno++?>. |
echo $row['model'];?> |
echo $row['product'];?>
fff |
echo $price;?>
|
Buy!
|
}
$chk = mysql_free_result($result);
mysql_close;
?>
| |
|
|
|
| |
|
|
|
$stu = "N";
include("userpass.php3");
mysql_connect ($host, $users, $password) or die ("File not found");
mysql_select_db ($database);
$result = mysql_db_query ($database, "select * from product where (stu='$stu') order by product");
while ($row = mysql_fetch_array ($result)) {
?>
 |
echo $row['product'];?>
|
|
}
$chk = mysql_free_result($result);
mysql_close;
?>
| |
|
|
$stu = "P";
include("userpass.php3");
mysql_connect ($host, $users, $password) or die ("File not found");
mysql_select_db ($database);
$result = mysql_db_query ($database, "select * from product where (stu='$stu') order by product");
while ($row = mysql_fetch_array ($result)) {
?>
 |
echo $row['product'];?>
|
|
}
$chk = mysql_free_result($result);
mysql_close;
?>
|
|