Ver Mensaje Individual
  #3 (permalink)  
Antiguo 14/12/2012, 09:29
consultashangar
 
Fecha de Ingreso: junio-2011
Ubicación: Buenos Aires
Mensajes: 91
Antigüedad: 12 años, 10 meses
Puntos: 1
Respuesta: Ingresar a Base de Datos

Hola!!!! Ahi te envio el Codigo de insertar en tabla de datos

<?php
include("config.php");
mysql_connect($server,$db_user,$db_pass) or die ("error1".mysql_error());
mysql_select_db($database) or die ("error2".mysql_error());
mysql_query("INSERT INTO `travelcu_Registroclientes`.`USUARIOS`(`NOMBRE`,`A PELLIDO`,`EMAIL`,`TELEFONO`,`DIRECCION`,`LOCALIDAD `,`PROVINCIA`,`PAIS`,`DNI`,`FECHA DE NACIMIENTO`,`CONTRASEÑA`,`REPERTIR CONTRASEÑA`,`ESTADO`)VALUES('$_POST([NOMBRE]','$_POST[APELLIDO]','$_POST[EMAIL]','$_POST[TELEFONO]','$_POST[DIRECCION]','$_POST[LOCALIDAD]','$_POST[PROVINCIA]','$_POST[PAIS]','$_POST[DNI]','$_POST[FECHA DE NACIMIENTO]','$_POST[CONTRASEÑA]','$_POST[REPETIR CONTRASEÑA]','$_POST[ESTADO]')");
?>

y Aqui el de Config.php

<?php
$server="localhost";
$database="travelcu_Registroclientes";
$db_user="travelcu_xxxx";
$db_pass="xxxxxxxx";
?>