Php Vinculando Informações
queria saber oque e necessário pra fazer pra aparecer o nome do cliente e vincular o nome do cliente com outra tabela, como se fosse uma reserva do produto
<?php
$host = "localhost";
$user = "root";
$pass = "";
$banco = "Cadastro";
$conexao = mysql_connect($host, $user, $pass) or die(mysql_error());
mysql_select_db($banco) or die(mysql_error());
session_start ();
if (!isset ($_SESSION["email"]) OR !isset($_SESSION["senha"])){
header("location: home.php");
exit;
} else {
echo "<center>ONLINE</center>";
}
?>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Painel De Reserva</title>
<style type="text/css"><!--
.style1 {
color: #660066;
font-weight: bold;
font-size: 36px;
}.style2 {font-size: 36px}
-->
</style>
</head>
<body>
<body bgcolor="#696969">
<p align="center" class="style1">Lista de Reserva</p>
<form id="form1" name="form1" method="post" action="">
<label>
<div align="right">
<input type="submit" name="Submit" value="Logout" />
</div>
<div align="left">
<select name="select">
</select>
<input type="submit" value="Sair" onclick="location. href='logout.php' ">
</div>
</label>
</form>
<table width="100%" height="928" border="1">
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
<p class="style2"> </p>
</body>
</html>Discussão (1)
Carregando comentários...