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! Quote Link to comment 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? Quote Link to comment 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? 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.