Using mySQL query result in making another query in PHP – Phpmyadmin
It's a very weird kind of problem. Here's my code : function lvlmem($a_id) { global $con; global $mem; // $a_id = "'".$a_id."','220'"; $results = []; $stmt = $con->prepare("SELECT id FROM `$mem` where parent_id in (?) && (plan!='bm' || takencf=1) &&…