Joint table query problem.
$sql = "select t1.*,t2.cat_name as catname from goods as t1,category as t2 where t1.cat_id = t2.cat_name;"; $result = $model -> query($sql); $count = $mode
子寒 2018-05-16 07:12:23 1 0 754
When checking whether the column exists, an error is reported
$sql="select count(*) from cat where catname=$cat[catname]"; $rs=mysql_query($sql); if(@mysql_fetch_row($rs)[0]!=0){ echo "栏目存在"; &nbs
万叶 2017-06-22 10:17:36 0 2 789