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? Link to comment https://forums.phpfreaks.com/topic/123881-solved-another-chat-issue/ 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. Link to comment https://forums.phpfreaks.com/topic/123881-solved-another-chat-issue/#findComment-639568 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. Link to comment https://forums.phpfreaks.com/topic/123881-solved-another-chat-issue/#findComment-642479 Share on other sites More sharing options...
twilitegxa Posted September 19, 2008 Author Share Posted September 19, 2008 It still shows no errors. Link to comment https://forums.phpfreaks.com/topic/123881-solved-another-chat-issue/#findComment-645908 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! Link to comment https://forums.phpfreaks.com/topic/123881-solved-another-chat-issue/#findComment-647467 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 Link to comment https://forums.phpfreaks.com/topic/123881-solved-another-chat-issue/#findComment-647471 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.