PHP Development to create a simple event Calendar calendar_php instances

Source: Internet
Author: User
Tags learn php
The material is in the depth of PHP and jquery, and this book is actually about a calendar of events.

This article is suitable for the transfer from other languages (such as Java,c++,python, etc.) to PHP, no system to learn PHP, or PHP beginners, has a deeper understanding of the program of Friends

The above is the file directory structure, public is the program root directory, the purpose is to security considerations, the core program in the outside access to the place.

The local demo address is:http://localhost/index.php

The first is the database script:

/*navicat MySQL Data Transfer Source server:localhost_3306source Server version:50130source HOST:127.0.0.1:3306SOURC E database:php-jquery_example Target Server type:mysqltarget server Version:50130file encoding:65001 date:2016-06 -19 16:54:29*/create DATABASEIFNot EXISTS ' php-jquery_example 'DEFAULTCHARACTER SET UTF8 COLLATE utf8_unicode_ci;SPAN style= "Color:rgb (0, 128, 0); >SPAN style= "Color:rgb (0, 128, 0); >SPAN style= "Color:rgb (0, 128, 0); >set foreign_key_checks=0;--------------------------------Table structure forEvents------------------------------DROP TABLEIFEXISTS ' Events ';SPAN style= "Color:rgb (0, 128, 0); >create TABLE ' Events ' (' event_id ' int (one) not NULL auto_increment, ' event_title ' varchar COLLATE utf8_unicode_ciDEFAULTNULL, ' Event_desc ' text COLLATE utf8_unicode_ci, ' event_start ' timestamp not NULLDEFAULT' 0000-00-00 00:00:00 ', ' event_end ' timestamp not NULLDEFAULT' 0000-00-00 00:00:00 ', PRIMARY key (' event_id '), key ' Event_start ' (' Event_start ')) Engine=myisam auto_increment=3DEFAULTCharset=utf8 Collate=utf8_unicode_ci;SPAN style= "Color:rgb (0, 128, 0); >SPAN style= "Color:rgb (0, 128, 0); >--------------------------------Records of events------------------------------INSERT into ' Events ' VALUES (' 1 ', ' New year&; #039; s Day ', ' Happy New year! ', ' 2010-01-01 00:00:00 ', ' 2010-01-01 23:59:59 ');INSERT into ' Events ' VALUES (' 2 ', ' Last day's January ', ' last day of the month! yay! ', ' 2010-01-31 00:00:00 ', ' 2010-01-31 23:59:59 ');

PHP Development to create a simple event Calendar calendar second, please click.

The above is the whole content of this article, I hope that everyone's learning has helped, but also hope that we support the script home.

  • 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.