ErrorException: Undefined offset: 7

if (!is_null($timetable[$i][$day]))
this is the line that is producing an error of ErrorException: Undefined offset: 7.
Please help me fix this. Thanks

use empty()

https://duckduckgo.com/?q=php+empty

you mean instead of is_null() ?
I have already tried that, it gives me a blank page. no error just a fully blank page

then something else is broken, have a look at your webserver’s error.log

Sponsor our Newsletter | Privacy Policy | Terms of Service