DEV Community

Discussion on: How to store radio button value in database PHP?

Collapse
 
_garybell profile image
Gary Bell

Please do not use mysql_* functions. Doing so is insecure due to the nature of the library. It also means using an unsupported version of PHP.

The mysql_* library was removed in PHP 7. At worst this should be replaced with mysqli_* functions.

Really, it should use a parametised queries to reduce the risks of SQL injection.