|
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;
?>
|
|
|
|
|
$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;
?>
|
|
|
|
|