是这样吗?
$rs=mysql_query("SELECT * FROM table1 ");
$myrow = mysql_fetch_array($rs);
if ($myrow['flid1']==$q || $myrow['flid2']==$flid2 || $myrow['title']==$bt || $myrow['password']==$password || $myrow['content']==$nr || $myrow['yxq']==$yxq )
echo "请勿重复提交相同信息!";
else {
$mysql=mysql_query("INSERT INTO table1 (id,flid1,flid2,title,password,content,rq,yxq) VALUES ('','$q','$flid2','$bt','".md5($password)."','$nr','$date','$yxq')");
}
1.这样的语法有问题吗?
2.若没问题是否有更简洁的方法?
谢谢!