[Solved] The user ID is not defined


You query is returning false on the following line

$dn = mysql_query('select user_name, user_email from users where user_id="'.$id.'"');

You will need to find out why, you should not attempt anything untill it returns true:

$sql = sprintf("SELECT user_name, user_email FROM users WHERE user_id = %s",
                mysql_real_escape_string($id));
$dn = mysql_query($sql);

if(!$dn){
  echo "mysql_query() failed";
  exit();
}

0

solved The user ID is not defined