Jump to content

[SOLVED] Won't let me choose..


Bullet

Recommended Posts

        <td class='TableArea'><a href='jcFamily.php?kick=$user'>Kick</td>

 

I need it so ou can choose which member to kick. When I click on Kick is kicks the member at the bottom of the table. Heres my PHP:

 

if (strip_tags($_GET['kick'])){

if ($kick== $owner || $kick== $rhm)

{ echo "You cannot kick the leader or underboss."; }

else {

  $check1=(mysql_query("SELECT * FROM users WHERE username='$kick' AND crew='$crew'"));

$num_check_rows=mysql_num_rows($check1);

if ($num_check_rows == "0"){

echo "That user is not in your family!";

}}else{

mysql_query("UPDATE users SET crew='0' WHERE username='$user'");

echo "You kicked $user.";

}}

 

Any help?

 

Link to comment
https://forums.phpfreaks.com/topic/121085-solved-wont-let-me-choose/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.