php突然不能往rds插入数据了
Rephp突然不能往rds插入数据了
$mysqli = new mysqli();
$mysqli->select_db($defined_db_name);
$sql = 'INSERT INTO user (user_id,name) VALUES ('$_GET[userId]', '$_GET[name]')';
$result = $mysqli->query($sql);
if ( $result )
{
echo 'commit sucess';
}
else
{
echo 'commit failed '.$mysqli->errno;
}
结果没有插入数据,显示commit failed 0
赞0
踩0