MySQL injection occurs when someone unauthorised attempts to run an MySQL statement on your database. This will normally take the form of inserting a MySQL statement where you would normally expect some user input – maybe their username.
MySQL Injection Prevention
There is a PHP function which can be used to prevent MySQL injection attacks:
mysql_real_escape_string($variable)
The mysql_real_escape_string() makes [...]
7Mar10
What is MySQL Injection?
3 Comments
Posted in mysql
Tagged database, injection, MySQL, mysql_real_escape_string(), security, sql
Tagged database, injection, MySQL, mysql_real_escape_string(), security, sql
17Feb09
Database connection script
No doubt you already use a database connection script. As a developer, you probably use different servers throughout the development process. When you move your application from one server to another, you maybe have to change the database connection script in order for the application to work on the new server.
If you forget to update [...]
1 Comment
Posted in Web development
Tagged connect, connection, database, development, MySQL, php, server, servers, sql
Tagged connect, connection, database, development, MySQL, php, server, servers, sql