Skip to content
Advertisement

Undefined index uid calling GET fetch

I have a function that calls a SQL query, the function is type fetch_user

Now i get an Undefined Index error when I call my query, The error message is

Undefined index: uid in profile.php on line 3

But the thing is that i cant find the error,

This is my user.inc.php that have the function

And this is my profile.php that gets the function

Any ideas what could be the problem ?

Advertisement

Answer

It means the GET variable uid is unset, so you’re doing something wrong when calling the page. Have you tried going to profile.php?uid=000 (where 000 is a uid)

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