$sql = "update cat set num=num+1 where cat_id=$art[cat_id]"; $sql = "update cat set num=num+1 where cat_id=".$art['cat_id'];