Beispiel #1
0
$obj = new connect();
$mid = '';
$m_id = '';
if (isset($_POST['cat'])) {
    $mid = $_POST['cat'];
}
if (isset($_GET['cat'])) {
    $m_id = $_GET['cat'];
}
$mname = '';
if (isset($_GET['mname'])) {
    $mname = $_GET['mname'];
}
$price = $obj->getprice($mname);
$company = $obj->getcompany($mname);
$img = $obj->getimage($mname);
$count = $obj->getcount();
$tot_item = 0;
$tot_price = 0;
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>E- Shop</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="js/script.js">
</script>
<style type="text/css">
<!--
Beispiel #2
0
$mid = '';
$m_id = '';
if (isset($_POST['cat'])) {
    $mid = $_POST['cat'];
}
if (isset($_GET['cat'])) {
    $m_id = $_GET['cat'];
}
$mname = '';
if (isset($_GET['mname'])) {
    $mname = $_GET['mname'];
}
$price = $obj->getprice($mname);
$company = $obj->getcompany($mname);
$company_name = $obj->companyname($company);
$img = $obj->getimage($mname);
$count = $obj->getcount();
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>E- Shop</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="js/script.js">
</script>
<style type="text/css">
<!--
.style2 {font-size: 18}
-->