I\'ve searched the site and saw fixes for the issue in which the user should have put single quotes around the variable but I still a bit confused.
Errors: (all refer to
Your forgot to put dollar-signs.
Replace this:
$user_ok = evalLoggedUser($con,log_id,log_username,log_password);
with this:
$user_ok = evalLoggedUser($con,$log_id,$log_username,$log_password);