![sin imagen de perfil sin imagen de perfil](/img/anonymouse.png)
Problema con registrar caracteres especiales
Publicado por Cardenal (2 intervenciones) el 21/04/2018 02:31:28
Hola. Soy nuevo en Programación Web. Estoy trabajando en un proyecto pequeño y tengo un problema en cuanto al registrar a la Base de Datos, el problema es que me registra todos los datos, excepto los caracteres especiales(acento,ñ, entre otros...) en la tabla de PHPMYADMIN me aparece el signo de interrogación "?". Este el código que tengo. Quisiera saber si es un problema en cuanto a PHP o MySQL
CONEXION.
CONTROLADOR
FORMULARIO
CONEXION.
1
2
3
<?php
$conexion = new mysqli("localhost", "X", "X", "X");
?>
CONTROLADOR
1
2
3
4
5
6
7
8
9
10
11
12
<?php
include_once("X");
$X = $_POST['X'];
$X = $_POST['X'];
$X = $_POST['X'];
$X = $_POST['X'];
$query="INSERT INTO X(X,X,X,X) VALUES(X,X,X,X')";
$resultado= $conexion->query($query);
?>
FORMULARIO
1
2
3
4
5
6
7
<form action="X" method="POST">
<input type="text" REQUIRED name="X" maxlength="50" placeholder="X">
<input type="text" REQUIRED name="X" maxlength="11" placeholder="X">
<input type="email" REQUIRED name="X" placeholder="X" maxlength="50">
<textarea name="X" REQUIRED id="" placeholder="X" cols="30" rows="10" maxlength="300" ></textarea>
<button type="Submit" REQUIRED name="submit" value="enviar">Enviar</button>
</form>
Valora esta pregunta
![Me gusta: Está pregunta es útil y esta clara Me gusta: Está pregunta es útil y esta clara](/img/img.png?11.51)
![NO me gusta: Está pregunta no esta clara o no es útil No me gusta: Está pregunta no esta clara o no es útil](/img/img.png?11.51)
0