How to check the number of records returned when searching for my MySQL database with a statement:
$searchKey = 'Something to search for'; $searchResults = Doctrine::getTable('TableName')->createQuery('t')- >where('columnName LIKE ?','%'.$searchKey.'%')->execute();
php mysql doctrine
Anthony
source share