// include the database utility file
include_once ('dbconnect.inc');
?>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta name="pragma" content="no-cache" />
<style type="text/css" media="all">@import "cart.css";</style>
<title>Cart example with PHP & MySql</title>
</head>
<body>
<h3>Cart example with PHP & MySql [ Product Select ]</h3>
<!-- Show the catagory data as a option selector (always shown) -->
<form method="post" id="range_form" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<p>select range:<br/>
<select name="range" onChange="document.forms['range_form'].submit();">
<?php
$result_range = mysql_query("SELECT * FROM catagory");
while ($row = mysql_fetch_assoc($result_range))
{
echo "<option value=\"".$row['c_id']."\"";
if (isset($_REQUEST['range']) && $_REQUEST['range']==$row['c_id'])
{
echo " selected=\"selected\"";
}
echo ">";
echo $row['name']."</option>\n";
}
?>
</select>
</p>
</form>
And what programming languages are used within this code?