getElementsByTagName问题求解
登录后复制
class MessageService{
//将数据信息添加到数据库
function addMessage($sender,$getter,$con){
$sql="insert into message (sender,getter,content,sendTime) values('$sender','$getter','$con',now())";
//file_put_contents("d:/test.txt","sql=".$sql."\r\n",FILE_APPEND);
$sqlHelper=new SqlHelper();
return $sqlHelper->execute_dml($sql);
}
//获取信息,并把数据组装好返回给客户端(聊天室)
function getMessage($getter,$sender){
$sql="select * from message where getter='$getter' and sender='$sender' and isGet=0";
$sqlHelper=new SqlHelper();
09-17 19:20