Notice : Undefined variable when concatenating
I have been making a script to display users and make changes to their admin privileges. Here is the code: while ($row= mysql_fetch_assoc($query)) { $uname= $row['username']; $fname= $row['first_name']; $lname= $row['last_name']; $email= $row['email']; $admin= $row['admin']; $insert .= '<tr> <td>' .$uname. '</td> <td>' .$fname. '</td> <td>' .$lname. '</td> <td>' .((isset($email)) ? $email:'No email set.'). '</td> <td>'.(($admin == 'y') ? 'Admin':'User').'</td> <td><input type="checkbox" name="' .$uname. '" value="'.(($admin == 'y')?'n':'y').'"/>'.(($admin == 'y')?'Make a user':'Make an admin