DarkShadowWing Posted September 8, 2009 Share Posted September 8, 2009 Hi all. After lots of research, I finally got this darn code to work. The only problem is I don't know how to detect which user is banned on the website and which user is not, or which user has a warning, and which 1 does not. i want to detect which user is what by the user's 1st name, and last name. or should i make a table that hold's their ip? if so, how would i do that? a working example would be GREAT! Code: $query = "SELECT $warning1, $banned1 FROM $tbl;"; var_dump($query."<br>\n"); $result = mysql_query($query) or die(mysql_error()); //now lets go through every row returned. while($row = mysql_fetch_assoc($result)){ $warning = $row[$warning1]; $banned = $row[$banned1]; $rows = mysql_num_rows($result); echo "query: ".$query."<br>\n"; echo "result: ".$result."<br>\n"; echo "row: ".$row."<br>\n"; echo "warning: ".$warning."<br>\n"; echo "banned: ".$banned."<br>\n"; echo "rows: ".$rows."<br>\n"; if($warning > 0){ ANY help is GREATLY appreciated! Link to comment https://forums.phpfreaks.com/topic/173600-need-help-with-telling-the-website-who-is-banned-and-who-is-not/ Share on other sites More sharing options...
DarkShadowWing Posted September 8, 2009 Author Share Posted September 8, 2009 what should i use to identify a different person each time? Link to comment https://forums.phpfreaks.com/topic/173600-need-help-with-telling-the-website-who-is-banned-and-who-is-not/#findComment-915117 Share on other sites More sharing options...
DarkShadowWing Posted September 9, 2009 Author Share Posted September 9, 2009 can someone show me an example of how to create and use an id for a person to identify who that certain person is? Link to comment https://forums.phpfreaks.com/topic/173600-need-help-with-telling-the-website-who-is-banned-and-who-is-not/#findComment-915528 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.