SELECT COUNT(*) AS Total FROM Recipe WHERE Category REGEXP 'diabetic'" something like this, you are not counting in php or in mysql query of your result. Also double check your REGEXP value is correct. https://www.geeksforgeeks.org/mysql-...ssions-regexp/
echo $data['Total'];
__________________
KVS, Mechbunny, API's, Elevatedx, NATS, dating sites, Symfony, Laravel, LAMP stack development.
|