再建一个表property表用JION..ON来查询

解决方案 »

  1.   

    将属性保存到数组,用属性名做关联键
    序列化后放入property
    查询时用like
      

  2.   

    存储的数据项间用特定的符号分隔,比如"," or "|"
    提取的时候用explode提取出数组
    再用数组下标输出example$string="1,2,3,4,5";
    $temp=$explode(",",$string);
    $num=count($temp);
    for ($i=0;$i<$num;$i++)
        {
          echo "$temp[".$i."]=".$temp[$i]."<br>";
        }
    //Layout:
    //$temp[0]=1
    //$temp[1]=2
    //$temp[2]=3
    //$temp[3]=4
    //$temp[4]=5
      

  3.   

    SELECT * FROM `数据表` WHERE `显卡` LIKE '%显存%' ORDER BY `id` LIMIT 0 , 30
    其他的也一样