[Solved] Why this don’t work? [closed]

Little change. Issue in execute. You are passing blank array in this. So you have to check first if array containing value or not function db_toplu_veri_oku($query, $execute = array() , $binds = array(),$debug = false) { global $db; $query = $db->prepare($query); foreach($binds as $bind) { $query->bindValue($bind[0], $bind[1], $bind[2]); } if(count($execute)) //<———–Add this condition $select = … Read more