Notice: Undefined index: student_name in C:\xampp\htdo

How to use phpmyadmin.... phpmyadmin related arguments. Even phpMyAdmin issues

Moderators: macek, egami, gesf

Post Reply
element121
php-forum Fan User
php-forum Fan User
Posts: 604
Joined: Sat Jun 06, 2015 11:46 am
Contact:

Re: Notice: Undefined index: student_name in C:\xampp\htdo

Post by element121 » Mon Sep 21, 2015 9:15 am

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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest