|
You could write a function so when the the (unban) link is hit, it takes the browser to memberschange.php?person=Gary&a=unban
Then get it to change the person to be unbanned, then send the browser back to the members.php. (or what ever you list ur users in)
Thats how I do mine.
So, your pulling all your information off your database to display their information. and make it so the unban link is in this form.
<a href="memberschange.php?person=$name&a=unban">Unba n</a>
Replace $name with what ever you print out their name with.
Then on memberschange.php, have it pull the information name and action down and then proceed in changing the persons status, WHERE name = $person (or what ever)
If you still have problems let me know and I'll give some code examples.
__________________
Websites Created;
warscope.com
ratepayers.org.nz
|