PHP Classes

SQL Sanitizer for MySQL: Encode literal values to use in MySQL SQL queries

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 236 All time: 8,084 This week: 455Up
Version License PHP version Categories
sql-sanitizer 1.0Public Domain5PHP 5, Databases, Security
Description 

Author

This class can encode literal values to use in MySQL SQL queries.

It takes a given literal value of a given type and encodes it so it can be used safely in MySQL queries.

The class supports SQL data types: text, date, long, integer, double.

Text values are encoded using the real_escape_string function using a previously established connection to a MySQL database using the MySQLi extension.

Picture of Adeeyo Sulaiman Adesola
Name: Adeeyo Sulaiman Adesola <contact>
Classes: 2 packages by
Country: Nigeria Nigeria
Age: 34
All time rank: 233014 in Nigeria Nigeria
Week rank: 200 Up6 in Nigeria Nigeria Up

Documentation

 

  Files folder image Files (2)  
File Role Description
Accessible without login HTML file Doc.html Doc. The Guide/Documentation for the use of the class
Plain text file sqlsanitizer.class.php Class The Class File of the SQL Sanitizer class

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:236
This week:0
All time:8,084
This week:455Up