PHP Classes

File: class.mysql.php

Recommend this page to a friend!
  Classes of Vinicius Gallafrio   Easy MySQL   class.mysql.php  
File: class.mysql.php
Role: Class source
Content type: text/plain
Description: class
Class: Easy MySQL
Author: By
Last change: List updates:

Query method updated: If execute Insert statement its Return ID from inserted record for tables with auto-increment primary key

Utils methods for brazilian users

New method datafilter: prepare string before run sql query (prevent sql injections)
New method cDateMySQL2Br: convert date from YYYY/MM/DD to DD/MM/YYYY
New method cDateBr2MySQL: convert date from DD/MM/YYYY to YYYY/MM/DD

New method cDateTimeMySQL2Br: convert date time from YYYY/MM/DD HH:MM:SS to DD/MM/YYYY HH:MM:SS
New method cDateTimeBr2MySQL: convert date time from DD/MM/YYYY HH:MM:SS to YYYY/MM/DD HH:MM:SS

New method cValorMySQL2Br: convert point to comma
New method cValorBr2MySQL: convert comma to point

New method cBooleanMySQL2Br: convert 1 for "Sim" and 0 for "Não"
New method cBooleanBr2MySQL: convert "Sim" for 1 and "Não"for 0
Date: 17 years ago
Size: 9,613 bytes

You need to be a registered user and login to get this file.

1,616,419 PHP developers registered to the PHP Classes site.
Be One of Us!

Login Immediately with your account on: