Ver Mensaje Individual
  #17 (permalink)  
Antiguo 06/08/2010, 18:59
Dexter_MORGAN
 
Fecha de Ingreso: agosto-2010
Mensajes: 9
Antigüedad: 13 años, 7 meses
Puntos: 0
Respuesta: Codigo PHP no me esta haciendo nada

yo tambien tengo ese problema nose si me puedan ayudar =( se los agreadeceria mucho
Código PHP:
<html>
<head>
<title>Prueba</title>
</head>
<?php
$conexion
=mysql_connect("localhost","root","") or
  die(
"Problemas en la conexion");
mysql_select_db("hc1",$conexion) or
die(
"Problemas en la seleccion de la base de datos");
?>
<?
 $Nombre
=$_POST["Nombre"];
 
$Apellido=$_POST["Apellido"];
 
$Domicilio=$_POST["Domicilio"];
 
$Telefono=$_POST["Telefono"];
 
$E_mail=$_POST["E_mail"];
 
$Fecha_inico=$_POST["Fecha_inicio"];
 
$Fecha_fin=$_POST["Fecha_fin"];
 
 
 
  
mysql_query("INSERT INTO cliente(Nombre,Apellido,Pais,Ciudad,Telefono,E_mail) VALUES ('".addslashes($Nombre)."', '".addslashes($Apellido)."', '".addslashes($Domicilio)."', '".addslashes($Telefono)."', '".addslashes($E_mail)."');");  
mysql_query("INSERT INTO Reservacion(Fecha_inico,Fecha_fin) VALUES ('".addslashes($Fecha_inicio)."','".addslashes($Fecha_fin)."');");
$result=mysql_query($sql);
echo 
"El contacto ha sido agregado satisfactoriamente";
?>