How to return false if 0 rows affected with PDO?

前端 未结 3 1056
走了就别回头了
走了就别回头了 2021-01-26 02:31

How can I return false if 0 rows affected with PDO?

I have this method to execute a SQL query,

public function executeSQL($query, $params = array())
{

          


        
3条回答
提交回复
热议问题