Does the students table have a column called student_name in it?
In your SQL statement, it's recommended to specify which fields you are SELECTing.
Also make use of var_dump() to debug your code.
That will help show you what data that variable contains and how to access it.
Hope that helps,
How to use phpmyadmin.... phpmyadmin related arguments. Even phpMyAdmin issues
1 post • Page 1 of 1