Ok this is my code it displays like this in Firefox when completed
the input would have been shout test 123 for You (me) and 456 for Xantho which is hwo its supposed to look..
You shouted, "test 123"
Xantho shouted, "test 456"
But the same inputs when viewed in IE display as
You shouted, "shouted, "test 123""
Xantho shouted, "shouted, "test 456""
why is it displaying the action twice in ie?
if ($command1 == 'shout'){
include("db.php");
$queryb = mysql_query("SELECT * FROM `character` WHERE Who='y'");
while ($row = @mysql_fetch_array($queryb))
{
$person=$row["User"];
$messages=$row["messages"];
$explodit = explode(" ", $command);
unset($explodit[0]);
$command = join(" ", $explodit);
if($person == $user){
$command = "<b>You shouted,</b> \"".$command."\"";
$messages = $messages."<br>\n".$command;
}else{
$command = $user." shouted, \"".$command."\"";
$messages = $messages."<br>\n".$command;
}
$sqlquery1 = "Update `character` SET messages='$messages' where User='$person'";
mysql_query($sqlquery1);
}
mysql_close();
}