/ Published in: PHP
Existen varias formas para hacerlo, pero lo que dejo aquà es a lo que tenemos que acostumbrarnos a hacer cada vez que programemos para prevenir que se pueda inyectar HTML o modificar las consultas SQL.\r\n\r\nThere are several ways to do it, but what I leave here is what we have to get used to do every time we schedule to prevent or modify HTML to inject SQL queries.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php $integer = (int) $integer; /* This function must always (with few exceptions) be used to make data safe before sending a query to MySQL. */ ?>