当我使用这段代码时,结果/回音按我的要求显示。
<?php
$user_checks = $wpdb->get_results(
"
SELECT ID, user_nicename
FROM $wpdb->users
"
);
foreach ( $user_checks as $user_check )
{
echo $user_check->ID;
echo $user_check->user_nicename;
}
?>
但当我选择table other时,wordpress会提供什么,例如:<?php
$user_checks = $wpdb->get_results(
"
SELECT id, name
FROM $wpdb->uap_banners
"
);
foreach ( $user_checks as $user_check )
{
echo $user_check->id;
echo $user_check->name;
}
?>
结果为空。。。我错过什么了吗?(我是wordpress的新手)