当我放置一个静态值时它可以工作但是当我使用 $a 它打印正确的值但没有将值保存在数据库中
<?php
$conn_error='Could not Connect';
$mysql_host='localhost';
$mysql_user='root';
$mysql_pass='';
$mysql_db='db_ZS';
$con=mysqli_connect($mysql_host,$mysql_user,$mysql_pass,$mysql_db);
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
$a=$_POST['txtEn'];
echo $a;
mysqli_query($con,"INSERT INTO tlb1 (AR,EN) values ($a,$a)");
mysqli_close($con);
?>