gpt4 book ai didi

php - MySQL - INSERT INTO 说我有 'to' ='$user2' 的错误语法

转载 作者:行者123 更新时间:2023-11-30 23:55:35 25 4
gpt4 key购买 nike

<分区>

$time=date("G:i:s j.n.Y");
$wholetime="$time";
mysql_query("INSERT INTO rivase_chat_posts SET sender='$user', content='$msg', time='$wholetime', 'to'='$affectuser'");
$msg="";

我正在做私有(private)聊天的事情。那是我的代码。它导致此错误:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''to'='gs'' at line 1
($user="gskartwii", $msg="HI", $affectuser='gs')

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com