错误:警告:mysql_query() 期望参数 1 是字符串,第 8 行 C:\wamp\www\cdij\editquantity.php 中给出的资源
这是代码:
<?php
$con=mysql_connect("localhost","root","","test");
$quantity=$_POST['txt_quantity'];
$name=$_POST['Fields'];
$table=$_POST['editwhat'];
$que="UPDATE `material` SET `material_quantity`='".$quantity."' WHERE `material_name`='".$name."'";
mysql_query($con,$que);
mysql_close($con);
?>