I am trying to read the contents of the table named class as shown in the image below
My code responsible for reading the contents Is as below
The error I am getting is as shown below
Anybody who has a clue on how I can about on this.
This happens because  in php world are specified for arrays so what you can try $var['class']