Jump to content

Need help with telling the website who is banned and who is not.


DarkShadowWing

Recommended Posts

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! :)

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.