예제 #1
0
session_start();
/*$_SESSION["product_sh"];
*/
include_once "modify_shopping_start.php";
/*if(!isset($_SESSION["product_sh"])) {
	header("login_front_trial1.php");
}else { */
if (isset($_POST["maybe_buy"])) {
    $obj = new control();
    $hostname = "localhost";
    $username = "******";
    $password = "";
    $database = "student";
    $obj->database($hostname, $username, $password, $database);
    $code = $_GET["code"];
    $result = $obj->select("SELECT * from register where code='{$code}'");
    /*	 }
    */
}
?>
<!DOCTYPE html >
<html>
<head>
<title>Add to cart</title>
<style>
th, td {text-align:center;
         color:#000;
        }
</style>
</head>
<body>
예제 #2
0
<?php

session_start();
/*$_SESSION["product_sh"];
*/
require_once "modify_shopping_start.php";
$call_class = new control();
$hostname = "localhost";
$username = "******";
$password = "";
$database = "student";
$call_class->database($hostname, $username, $password, $database);
$check_val = $call_class->select("SELECT * from add_product ");
//$bring =mysql_fetch_array($check);
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>login front1</title>
<style> 
.product {
			background-color: antiquewhite;
			color: #cf9c03;
			font-size: 28px;
			margin: -1px;
			padding: 0;
			text-align: center;
			text-decoration: blink;
			
            }