MySQLi更新无法正常工作 [英] MySQLi update not working

查看:68
本文介绍了MySQLi更新无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨我试图使用更新我的mysql数据库,但我有问题,我没有得到一个错误消息这里有人说添加mysqli_real_escape_string,但没有解决问题,任何人都可以帮助我,请iv被困在这3天



hi im trying to use the update my mysql database but im having problems and im not getting a error message some one here said to add mysqli_real_escape_string but that didnt solve the problem can anyone help me please iv been stuck on this for 3 days

$uuid = $_REQUEST['uuid'];
$type = $_REQUEST['type'];
$msg = $_REQUEST['message'];
$name = $_REQUEST['name'];
$time = $_REQUEST['time'];
$uuid = mysqli_real_escape_string($link, $uuid);
$type = mysqli_real_escape_string($link, $type);
$msg = mysqli_real_escape_string($link, $msg);
$name = mysqli_real_escape_string($link, $name);
$time = mysqli_real_escape_string($link, $time);
mysqli_query($link, "UPDATE AlertPack SET Type = '$type', Message = '$msg', Time = '$time', Sender = '$name' WHERE Key = '$uuid'") or (mysqli_error($link));
?>

推荐答案

uuid =
uuid =


_REQUEST [' uuid'];
_REQUEST['uuid'];


type =
type =


这篇关于MySQLi更新无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆