1. 论坛系统升级为Xenforo,欢迎大家测试!
    Dismiss Notice

PHP问题求助

Discussion in '后端开发' started by notnull, Apr 8, 2008.

  1. notnull

    notnull New Member

    Joined:
    Sep 27, 2005
    Messages:
    11,720
    Likes Received:
    37
  2. Henry

    Henry New Member

    Joined:
    Sep 4, 2005
    Messages:
    1,166
    Likes Received:
    4
    明明一个foreach就够了,干嘛用section呢,
    mysql_num_rows 绝对要慎用,一般只能用在单项判断存在上,用来统计查询的数量上绝对是不明智的选择,你那种查询方式数据量多的时候你就知道有多恐怖了。
    可以用select count(*) 查询来替代。