I've read at least 50 questions & answers by this time about the issue i posted in my question with no luck.
I'm suddenly encountering this issue on my server. 'Suddenly', because i hadn't been encountering any problem about this issue
I use the following query to display the username of logged user. The session starts only when the users submit the login form.
mysql_select_db($database_yyy, $zzz);
$query_people = "SELECT users.id, users.full_name FROM users WHERE users.full_name = '$_SESSION[user_id]'";
$people = mysql_query($query_people, $zzz) or die(mysql_error());
$row_people = mysql_fetch_assoc($people);
$totalRows_people = mysql_num_rows($people);
and the server omits the following notice:
Notice: Undefined index: user_id in /home/user/public_html/testdirectory/test.php on line 75
For example, here line 75 demonstrates the following query:
$query_people = "SELECT users.id, users.full_name FROM users WHERE users.full_name = '$_SESSION[user_id]'";
By the way, there isn't any problem with database connection.
Any idea or resolution?
Thanks,