📜  list database table rows plugin wordpress - PHP代码示例

📅  最后修改于: 2022-03-11 14:53:48.585000             🧑  作者: Mango

代码示例1
//you have to use global wpdp variable and get_result function in your code page like this...
global $wpdb;
$row = $wpdb->get_results( "SELECT * FROM your_table_in_wordpress");
    foreach ( $row as $row ) { 
      echo "email:".$row->email;
    } //$row->your_column_name in table