Hi,
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.
Specifically:
var_dump($student);
That will help show you what data that variable contains and how to access it.
Hope that helps,
Jon
Notice: Undefined index: student_name in C:\xampp\htdo
Moderators: egami, macek, gesf
-
- php-forum GURU
- Posts: 628
- Joined: Sat Jun 06, 2015 11:46 am
- Contact: