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();

26th Nov 2018, 12:04 AM
yosi
yosi - avatar
1 Réponse
+ 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
26th Nov 2018, 3:32 PM
dρlυѕρlυѕ
dρlυѕρlυѕ - avatar