int型的变量插入数据库变量名需要加单引号吗
$scenic_id=$_POST['scenic_id']+0;$add=mysqli_query($connect,"INSERTINTOorder(scenic_i...
$scenic_id =$_POST['scenic_id']+0;
$add = mysqli_query($connect,"INSERT INTO order(scenic_id)VALUES('$scenic_id')");
变量已经是int型了,values后面取值需要加单引号吗? 展开
$add = mysqli_query($connect,"INSERT INTO order(scenic_id)VALUES('$scenic_id')");
变量已经是int型了,values后面取值需要加单引号吗? 展开
1个回答
2017-04-20
展开全部
int类型的值不需要写引号
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询