Closed robsonsobral closed 11 years ago
With the exception of the years method, all of them use query with the prepared statement syntax (using ?'s in the sql string then passing parameters in an array separately), which applies the same security precautions as active record. But in the interest of more standard code, and to make the years method more secure, I'll go ahead and convert them.
Since we're discussing standards, should be good to use just CodeIgniter Active Record, instead of plain SQL. Active_record is safer than plain SQL and works on others databases than MySQL.
If you agree, I can convert the current functions.
It's good to help.