> // Add together proper fields to enter birth date > $fecha_nac = $ano_nac + "-" + $mes_nac + "-" + $dia_nac;
That's not the correct way to join strings. Use . instead of + > > // Open mysql db > mysql_select_db("intertur"); > > // SQL query insert all data into a table > $query = "insert into RegistroPersonas values > ('".NULL."','".$nombre."', '".$apellido."', '".NULL."', > '".$direccion."', > '".$ciudad."', '".NULL."', '".NULL."', '".$pais."', '".$telefono."', > '".$fax."', '".$email."', '".$login_usuario."', '".$clave."', > '".$fecha_nac."', '".NULL."', '".NULL."' '".$sexo."', '".NULL."', > '".NULL."', '".NULL."', '".NULL."' )"; > ----> My problem is NOTHING gets inserted !!! > ----> I filled all empty fields with NULL values > ----> It connects to the db but does nothing else > // Do query > $result = mysql_query($query); $result = MySQL_query($query) or die(MySQL_error()); That will at least tell you why the query isn't working... ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php