Its not that im not good, its that i havent used this yet..
Just to cofirm $ban is the username in the code?
Edit:
PHP Code:
if ($logged[level] == 12 && stristr($shout, ":ban"))
{
$shout = $_POST[shout]; //Assume this is $_POST[shout]
if (stristr($shout, ":ban"))
{
$ban = explode(" ", $ban);
$ban['0'] = "";
$result = mysql_query("UPDATE `users` SET `banned` = 'banned' WHERE `username` = '$ban'") or die ('Error during the execution of the MySQL query : ' . mysql_error());
$query = mysql_query("INSERT INTO `ban` (`id` , `username` , `time`) VALUES ('', '$ban', '$days-$date')") or die ('Error during the execution of the MySQL query : ' . mysql_error());
$alert = mysql_query("UPDATE `users` SET `alert` = 'You have been banned and can no longer use the Site' WHERE `username` = '$user'") or die ('Error during the execution of the MySQL query : ' . mysql_error());
}
}else{
Right or wrong?