Jump to content

[SOLVED] Another Chat Issue


twilitegxa

Recommended Posts

This code won't show any of the banned IPs in my table, just an empty pulldown box:

 

<?php

include "connect.php";

if(isset($_POST['submit']))

{

   $ipselects=$_POST['ipselects'];

   $unban="Delete from ipbans where ipid='$ipselects'";

   mysql_query($unban) or die("Could not unban");

   print "IP Unbanned.";



}

else

{

    print "<form action='unbanip.php' method='post'>";

    $getips="SELECT * from ipbans";

    $getips2=mysql_query($getips) or die("Could not get IPS");

    print "<select name='ipselects'>";

    while($getips3=mysql_fetch_array($getips2))

    {

       print "<option value='$getips3[ipid]'>$getips3[iP]</option>";

    }

    print "</select><br>";

    print "<input type='submit' name='submit' value='submit'></form>";

}

?>

 

Can anyone tell me why?

Link to comment
https://forums.phpfreaks.com/topic/123881-solved-another-chat-issue/
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.