to mysql_fetch_array mysql_query SELECT FROM chat WHERE msg LIKE user

1
2
3
4
5
6
7
8
$to = mysql_fetch_array(mysql_query("SELECT * FROM `chat` WHERE `msg` LIKE '%".$user['nick'].",%'"));
$sata = array('"'.$user['nick'].',", '.$to.'');
if($to['']==$user['nick']){
echo'<font color="orange">'.$sata[1].'</font>';
}
echo''.$sata['2'].'';