Alright, so far, everything works fine and dandy until I hit a mysql snag... Three of my variables are not posting to the table successfully.
[php]
$otheruser=$_GE T['poster'];
$time=date("H:i :s");
$newchat="INSER T INTO `logs`(`who`, `towho`, `type`, `message`, `when`, `x`, `y`, `z`) VALUES ('$otheruser', '$towho', '$type', '$message', '$time', '$x', '$y', '$z')";
$msg=$_GET['msg'];
$mesgread=explo de(" ", $msg, 4);
$explosion=expl ode(" ", $msg, 2);
if ($mesgread[0]=="/" AND $user==$otherus er AND $mesgread[1]!="to") {
$type="emote";
$message=$explo sion[1];
$towho="0";
mysql_query($ne wchat);
}
[/php]
When it hits the if statement, it refuses to work. The INSERT INTO works just fine for the who, x, y and z.
[php]
$otheruser=$_GE T['poster'];
$time=date("H:i :s");
$newchat="INSER T INTO `logs`(`who`, `towho`, `type`, `message`, `when`, `x`, `y`, `z`) VALUES ('$otheruser', '$towho', '$type', '$message', '$time', '$x', '$y', '$z')";
$msg=$_GET['msg'];
$mesgread=explo de(" ", $msg, 4);
$explosion=expl ode(" ", $msg, 2);
if ($mesgread[0]=="/" AND $user==$otherus er AND $mesgread[1]!="to") {
$type="emote";
$message=$explo sion[1];
$towho="0";
mysql_query($ne wchat);
}
[/php]
When it hits the if statement, it refuses to work. The INSERT INTO works just fine for the who, x, y and z.
Comment