我的代码:
function sendMessage($client, $owner, $topic, $message, $send, $alliance, $player, $coor, $report) {
$time = time();
$q = "INSERT INTO " . TB_PREFIX . "mdata values (0,$client,$owner,'$topic',\"$message\",0,0,$send,$time,0,0,$alliance,$player,$coor,$report)";
return mysql_query($q, $this->connection);
}
当我写消息时没有问题。但是如果我发送到 mysql 这个 -> ' 转换到这个 -> /'
'-> /'
我需要解决它的代码..请帮助我。