Comments - VERSION

6 years, 7 months ago Franye Ortiz

Hello friends!

I see the error!!

When i put:

$sql = "INSERT INTO 'contactos' ('id', 'nombre', 'telefono') "

We don't use simplfy quotation maks or double quotation marks, y must use this quotion marks: ``. If you don't use this, the form make error!!

 
6 years ago douglasryanadams_g

Just wanted to mention, in case other folks stumble here, that this is not the way you should structure your DB queries in PHP.

http://php.net/manual/en/security.database.sql-injection.php

 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.