When performing a simple SQL search using Zend_Db_Select,

$select->where('name = ?', 'chris');

But what if you want to do a LIKE search?

$select->where('name LIKE ?', 'chris%');

Simples.

By admin

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.