使用php和mysql进行日常统计

时间:2016-03-03 11:04:34

标签: javascript php mysql statistics

我有一张这样的表

history.listenBefore((location) => {
  if(this.props.dirty){
    const acceptBtn = {
      title: 'STAY',
      handler: ignoreRouteChange() //This can be any function I want
    }
    const denyBtn = {
      title: 'IGNORE',
      handler: continueRouteChange() //This can be any function I want
    }
    return dispatch(addNotification({
      message: 'You have unsaved changes!',
      type: NOTIFICATION_TYPE_WARNING,
      duration: 0,
      canDismiss: false,
      acceptBtn,
      denyBtn
    }));
    return "Usaved changes!"
  }
});

我想要它告诉我最后一封信的状态,例如有多少封信和多少封信寄给我......等等

请评论我需要您的反馈

1 个答案:

答案 0 :(得分:0)

您需要学习MySQL查询,尤其是SELECT。{ 文档here

例如,要知道字母closed的数量,您必须执行以下操作

SELECT COUNT(id) FROM tableName WHERE situation = 'closed';