LiveWhale CMS

Welcome, Guest Login

Support Center

Our documentation is moving:

Please check for the most up-to-date LiveWhale CMS and LiveWhale Calendar documentation. The below legacy documentation will remain available as a reference until the documentation migration is complete.

Escaping Values (SQL)

Last Updated: Nov 25, 2015 10:46AM PST

We all know how important is it to protect the integrity of a database by escaping values being utilized in SQL requests. You may also make use of LiveWhale’s built in escape method $_LW->escape() by passing subsequent arguments to applicable methods. The structure is very flexible.


// as a single parameter

// params as an array

//arrays for both
// use an array for multiples
‚Äč$_LW->dbo->where('foo=? AND bar=?', array($foo, $bar));
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
Invalid characters found