Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.