Welcome Guest, Not a member yet? Register   Sign In
PHP error. Why?
#3

This error is likely happening because the code is trying to access an index of the array '$row' that does not exist. The code is checking for a value in the 'id' index of the array, but if there is no value, it will return NULL. This is causing the error, because the code is trying to access an array offset (the index it's trying to access) on a value of type NULL, which is not allowed. To fix this issue, you could use an isset() check to ensure that the index exists before trying to access it.
Reply


Messages In This Thread
PHP error. Why? - by richb201 - 12-16-2022, 09:35 AM
RE: PHP error. Why? - by ikesela - 12-16-2022, 04:17 PM
RE: PHP error. Why? - by Sprint - 12-20-2022, 01:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB