I try to make a plugin that can show a table (with rows) in wordpress by using the WP_List_Table
class.
In my "students" table Ive got
Fname,Lname,school,Class
I've already found a example where they use arrays and typing manual everything to the table, which then looks like this
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' )
);
So I was wondering about is it possible to make an maybe more arrays where I can type Select * From table name
? Or something like that?