Verifique que sus datos sean correctos. Estos seran utilizados en la manera que los proporcione.
[insert_php]
function conectar(){
$user=”wordpressadmin”;
$pass=”word2015″;
$server=”localhost”;
$db=”wordpress”
$con=mysql_connect($server,$user,$pass) or die (“Error al conectar a la BD”.mysql_error());
mysql_select_db($db,$con);
return $con;
}
$func=”conectar”;
$func();
[/insert_php]
Hoteles
Hoteles
[insert_php]
if($_POST){
$gradoestudios=$_POST[“grado”];
$nombres=$_POST[“nombres”];
$apellidos=$_POST[“apellidos”];
$tipo=$_POST[“select2”];
$email=$_POST[“email”];
$telefono=$_POST[“tel”];
$taller=$_POST[“taller”];
}
mysql_query(“INSERT INTO datos_registro(estudios,nombres,apellidos,tipo,email,tel,taller) VALUES (‘$gradoestudios’,’$nombres’,’$apellidos’,’$tipo’,’$email’,’$telefono’,’$taller’)”) or die(mysql_error());
echo “