2013-08-28

This question already has an answer here:

PHP: “Notice: Undefined variable” and “Notice: Undefined index”

9 answers

I am getting the following error when i am trying to fetch data from a database:

[28-Aug-2013 11:26:15 Europe/Minsk] PHP Notice: Undefined index:
joindate in C:\inetpub\wwwroot\hosting\Dan\JWT\drivers-bank.php on
line 120 [28-Aug-2013 11:26:15 Europe/Minsk] PHP Notice: Undefined
index: division_current in
C:\inetpub\wwwroot\hosting\Dan\JWT\drivers-bank.php on line 121
[28-Aug-2013 11:26:15 Europe/Minsk] PHP Notice: Undefined index:
user_text in C:\inetpub\wwwroot\hosting\Dan\JWT\drivers-bank.php on
line 123

Here is my code:

The image is showing fine and the username used to show fine but now it isn't. I have searched the webs for a solution to this but i can only find references to people getting this error when fetching data from a form.

Edit:

The headings and row data for jwtdriversprofiles:

Can also be viewed here: http://sqlfiddle.com/#!2/5dcbc/1

Headings:

id, driverid, imgurl, joindate, division_current, user_text

Row1:

1, 1, (url), 1st April 2011, International, I AM THE ADMIN!!!!

Row2:

2, 2, (url), 1st April 2011, International, i am only here for testing purposes :(

Show more