• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Zapytańko

Status
Not open for further replies.

Aleh

Active Member
Joined
Jan 9, 2009
Messages
1,228
Reaction score
39
Location
Rzeszów
Elo;>
Jestem jeszcze Easy w tym wiec need pomoc.
$ban = $SQL->query('SELECT reason FROM bans');
foreach($ban as $bann)
moje pytanie:
jak zrobic zeby tylko liczylo takie bany ktore w reason maja Spamming
 
Code:
<?PHP
	$query = mysql_query("SELECT * FROM `bans` WHERE `reason` = 5;");
	while ($ban = mysql_fetch_array($query))
		echo $ban['comment']."<br/>";
?>
 
Code:
	$query = mysql_query("SELECT `comment` FROM `bans` WHERE `reason` = 5;");
	while ($ban = mysql_fetch_array($query))
		echo $ban['comment']."<br/>";
? :(

$ban = $SQL->query('SELECT reason FROM bans');
foreach($ban as $bann)

->

Code:
$ban = $SQL->query('SELECT * FROM `bans` WHERE `reason` = 5')->fetchAll();
foreach($ban as $banan)
 
Status
Not open for further replies.
Back
Top