0
me sale error no se pudo conectar.. y la conexiĂłn ya se conectĂł.. pero no me deja insertar los usuarios
yosi original: include_once("conetion.php"); $sql ="INSERT INTO usuarios(correo,usuario,billetera,contraseña) VALUES ('$correo','$usuario','$billetera','$password')"; $resultado = $conn->query($sql); if ($resultado) { echo "New record created successfully"; } else { echo "Error no se agregó usuario"; } $conn->close();
1 Answer
+ 2
Hmmm, it's hard to tell. What kind of error are you getting?
Check your conetion.php file. Make sure you haven't misspelled something.
P.S. Try using prepared statements, here is the link:
https://www.tutorialrepublic.com/php-tutorial/php-mysql-prepared-statements.php