Home > Backend Development > PHP Tutorial > php 念点击星期一时获取本月所有星期一的数据新手

php 念点击星期一时获取本月所有星期一的数据新手

WBOY
Release: 2016-06-13 12:16:04
Original
1024 people have browsed it

php 想点击星期一时获取本月所有星期一的数据新手 急
我index.php 页面上有

  •  星期一

  •                   
  •  星期二

  •                   
  •  星期三

  •                   
  •  星期四

  •                   
  •  星期五

  •                   
  •  星期六

  •                   
  •  星期日


  • 想点击星期一时获取本月所有星期一的数据
    想点击星期二时获取本月所有星期二的数据

    显示到resuindex.php页面上
    没有思路
    a标签的我不知道怎么传过去resuindex.php页面上
    ------解决思路----------------------
    <br /><li> <a href="resuindex.php?w=1">星期一</a></li><br /><li> <a href="resuindex.php?w=2">星期二</a></li><br /><li> <a href="resuindex.php?w=3">星期三</a></li><br /><li> <a href="resuindex.php?w=4">星期四</a></li><br /><li> <a href="resuindex.php?w=5">星期五</a></li><br /><li> <a href="resuindex.php?w=6">星期六</a></li><br /><li> <a href="resuindex.php?w=7">星期日</a></li><br />
    Copy after login


    resuindex.php
    <br />$w = isset($_GET['w'])? $_GET['w'] : '';<br />if(!in_array($w, array(1,2,3,4,5,6,7))){<br />    echo 'w error';<br />    exit();<br />}<br /><br />// 执行查询db语句,然后输出<br />
    Copy after login
    Related labels:
    source:php.cn
    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template