twilitegxa Posted September 12, 2008 Share Posted September 12, 2008 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? Quote Link to comment Share on other sites More sharing options...
Bendude14 Posted September 12, 2008 Share Posted September 12, 2008 are you getting any errors? what happens? does the page go blank? put error_reporting(E_ALL); at the top of the page. Quote Link to comment Share on other sites More sharing options...
twilitegxa Posted September 16, 2008 Author Share Posted September 16, 2008 I don't get any errors so far. The pulldown box is just blank. Let me try putting the error thing you said to put. Quote Link to comment Share on other sites More sharing options...
twilitegxa Posted September 19, 2008 Author Share Posted September 19, 2008 It still shows no errors. Quote Link to comment Share on other sites More sharing options...
twilitegxa Posted September 22, 2008 Author Share Posted September 22, 2008 For some reason this issue somehow resolved on its own, because I just checked it and now it shows IP addresses. Thanks anyway! Quote Link to comment Share on other sites More sharing options...
xoligy Posted September 22, 2008 Share Posted September 22, 2008 maybe the page was catched i normally press ctrl+f5 to clear the catch and reload the page Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.