Can we check in a MODEL [CODIGNITER] whether a mysql query returns true or false and based on the request in order to perform if else statement
A sql statement in model to perform whether if the sql statement gives num_rows>0 if it gives i need to perform a function else continue with other lines
Sure, here’s a contrived example.