📌  相关文章
📜  mysqli_real_escape_string() 期望参数 1 为 mysqli - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:37.356000             🧑  作者: Mango

代码示例1
$con=mysqli_connect("xxx","xxx","xxx","xxx");

// Check connection
if (mysqli_connect_errno())
  {
  echo "Failed to connect to MySQL: " . mysqli_connect_error();
 }
// pass $con to mysqli_escape_string() function 
$name = mysqli_real_escape_string(trim($_POST["name"]), $con);