yea I know how to connect n stuff, thats already done... and I put the $Query part in this one by accident.....
echo "
<form method=post action=$PHP_SELF?act=update>
Username:
<input type=text name=Ausername value='$derinfo[username]'><br>
Money:
<input type=text name=Amoney value='$derinfo[money]'><br>
User Level:
<input type=text name=Auserlevel value='$derinfo[userlevel]'><br>
Popularity:
<input type=text name=Apopularity value='$derinfo[popularity]'><br>
<input type=hidden name=Auserid value='$maid'>
<input type=hidden name=act value=update>
<input type=submit value=Update User!>
</form> ";
}
if ($act == "update") {
$Query = "UPDATE users SET username='$Ausername' money=$Amoney userlevel=$Auserlevel popularity=$Apopularity WHERE userid='$maid";
echo "<a href=userlist.php>Go Back</a>";
}
I dunno why the info is showing up in the text input but not updating anything...