meh its allways me with problem :( I have put it up chnaged the levels but on the page i get this >>
Code
Username: $user[username] ");//End the echo if($logged[userlevel] == 6 && $logged[id]){ echo ("Password: sha1(md5(md5(sha1(md5(sha1(sha1(md5($user[password))))))))] ");//echo the password holy shit. lol. }else{//if they aren't an admin then echo nothing below echo(''); //echo nothing } //End else if echo ("
Email:
MSN:
AIM:
Location: Current Level: $user[level] User Level: News Reporter:
Support Staff:
Modertor:
");// ends the echo and shows the content on top } else { $email = htmlspecialchars($_POST[email]); $msn = htmlspecialchars($_POST[msn]); $aim = htmlspecialchars($_POST[aim]); $location = htmlspecialchars($_POST[location]); $news = htmlspecialchars($_POST[news]); $support = htmlspecialchars($_POST[support]); $mod = htmlspecialchars($_POST[mod]); $level = htmlspecialchars($_POST[userlevel]); echo ("$_GET[user] has been updated."); // display's message $update = mysql_query("Update users set msn = '$msn', email = '$email', aim = '$aim', location = '$location', news = '$news', support = '$support', level = '$level', mod = '$mod' where username = '$_GET[user]'"); // updates the database } } else { $getusers = mysql_query("Select * from members order by username asc"); // gets the users while($users = mysql_fetch_array($getusers)) { echo("$users[username]"); // display's all users } } } else // if your not admin { echo("Sorry, but your not allowed to view this page."); // display's message if your not admin or not logged in } ?>
Sorry for the spam