mySql의 여러 데이터베이스에서 모든 테이블을 선택하는 방법 다음 단계를 수행하고 있지만 목표를 달성 할 수 없습니다.여러 데이터베이스에서 모든 테이블을 표시하는 방법
<?php
$a = "SHOW DATABASES";
$da = $wpdb->get_results($a);
foreach($da as $k){
echo '<pre>';
print_r ($k->Database);//prints all the available databases
echo '</pre>';
$nq = "USE $k->Database";//trying to select the individual database
$newda = $wpdb->get_results($nq);
$alld = "SELECT * FROM $k->Database";
$td = $wpdb->get_results($alld);
var_dump($td);//returns empty array
}
?>
당신은
SELECT * FROM database
을 할 수없는 나에게
당신은 올바른 같은 @의 cherouvim의 답변을 선택해야합니다! – JonyD