이 시도 $where_text = ""; // initially blank // here $user variable contains the current username if($user!='admin') // check $user is admin or not if not { $where_text = " WHERE username='$user' "; // update $where_text } $query = "SELECT * FROM `transaction` ".$where_text; // apply in the query 이제 $query변수로 쿼리를 사용할 수 있습니다. ------------------- 코드에서이 논리를 수행하고 싶지만 ORwhere 절에서를 사용하여 확인할 수 있습니다 . SELE..