Skip to content
Advertisement

Notice: Trying to access array offset on value of type null in C:xampphtdocsresindex.php on line 97 name:

I’ve created student result portal. It must display the student’s name and marks if the roll number and date of birth matches the data on database. Successfully, it displays the student’s mark details. But it shows error when displaying the student’s name. Below is the error. what I’ve to do now?

Notice: Trying to access array offset on value of type null in C:xampphtdocsresindex.php on line 97

name:

php

JavaScript

here is my database entries

Please help me to solve this.

Advertisement

Answer

That is because the if statement doesnt get run through, name does not have any value in it so it offsets NULL

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement