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.

Mixed Forms (enhanced SQL)

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

Perhaps you have a simple query, but you need to enhance it a little more than the simple format allows. Feel free to mix the long form when needed, as in utilizing the built-in escaping.

// a mixed example
// SELECT livewhale_news.title FROM livewhale_news WHERE = 1;

$_LW->dbo -> query('select', 'livewhale_news.title', 'livewhale_news')
-> where(array('' => '?'),1);
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
Invalid characters found