Photoshop CS5 official Chinese official version download PHP day, week, month click Ranking Statistics

Source: Internet
Author: User
Copy the Code code as follows:


$now =time (); Current time
$StrUpdate = "Update $tbl _article set hits=hits+1";
if (Date ("D", $lasthittime) ==date ("D", $now)) {//the same day
$StrUpdate = $StrUpdate. ", dayhits = dayhits+1";
}else{
$StrUpdate = $StrUpdate. ", dayhits = 0";
}
if (Date ("W", $lasthittime) ==date ("W", $now)) {//Same week
$StrUpdate = $StrUpdate. ", weekhits = weekhits+1";
}else{
$StrUpdate = $StrUpdate. ", weekhits = 0";
}
if (Date ("M", $lasthittime) ==date ("M", $now)) {//Same month
$StrUpdate = $StrUpdate. ", monthhits = monthhits+1";
}else{
$StrUpdate = $StrUpdate. ", monthhits = 0";
}
$StrUpdate = $StrUpdate. ", Lasthittime= ' $now ' where '; Update Click Time
$fsql->query ($StrUpdate);


Do not know how to use Ah, first analysis and then again
But the feeling seems to have some problems, if it is the day should first judge the year is the same, and then judge the day.

The above describes the Photoshop CS5 official Chinese official original download PHP day, week, month click Ranking statistics, including the official Chinese version of Photoshop cs5 the original download content, I hope that the PHP tutorial interested friends helpful.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.