我尝试制作一个插件,通过使用WP_List_Table
班
在我的“学生”桌上
Fname,Lname,school,Class
我已经找到了一个示例,其中他们使用数组并在表中键入manual everything,如下所示
var $example_data = array(
array( \'ID\' => 1,\'booktitle\' => \'Quarter Share\', \'author\' => \'Nathan Lowell\',
\'isbn\' => \'978-0982514542\' ),
array( \'ID\' => 2, \'booktitle\' => \'7th Son: Descent\',\'author\' => \' Hutchins\',
\'isbn\' => \'0312384378\' ),
array( \'ID\' => 3, \'booktitle\' => \'Shadowmagic\', \'author\' => \'John Lenahan\',
\'isbn\' => \'978-1905548927\' ),
array( \'ID\' => 4, \'booktitle\' => \'The Crown Conspiracy\', \'author\' => \'Michael\',
\'isbn\' => \'978-0979621130\' ),
array( \'ID\' => 5, \'booktitle\' => \'Max\', \'author\' => \'Mark Jeffrey\',
\'isbn\' => \'978-0061988929\' ),
array(\'ID\' => 6, \'booktitle\' => \'Jack Wakes Up: A Novel\', \'author\' => \' Har\',
\'isbn\' => \'978-0307454355\' )
);
所以我想知道有没有可能制作更多的数组来输入
Select * From table name
? 或者类似的?