出这个错是因为,mysql_query没有返回一个合理的Mysql数据集资源给$resultitem。而这种情况,一般是因为你的sql构造有问题。你可以在$sqlselect="select * from product_tbales where product_item ='$pbianhao'"; 后面加一句:echo $sqlselect;看看这个SQL语句到底是什么。然后到PHPMYADMIN里看看是否可以执行。另外,我看上面的SQL语句中product_tbales是不是拼错了?你确定不是:product_tables?
数据库中如果你要查的表中没有数据,是不会出现你所描述的那个错误的。你最好再仔细查查。出你描述的那个错,一般就是你的sql语句写错了。
还有一种可能是product_item拼错了。
select * from product_tbales where product_item ='2078466'product_item 为varchar