PHP date formatting and date calculation and when getting before week, month and end date
PHP date format Sample code:
/** * Format time * $type: Type * $strDate: Time string to be processed * * Year y: four-bit year y: two-bit year * month M:
web| Form Validation | The validation of the program form has been a headache for web designers, and the form validation class validator is written to address this problem, designed to liberate designers from complex forms validation and focus on
Requires a validation string to be passed between pages.Randomly generates a string when the page is generated,As a must parameter is passed in all connections. At the same time, save the string in session.
Point connection or form into the page,
1. String date (string Format,inieger timestamp)
The function returns a string representing the time, which is controlled by the string format.
Such as:
Print (Date ("Y year M month D Day");//output current, Month day.
Print (Date ("Y year M month D
Here is a paragraph based on the date format used to determine whether the current date is legal oh.
Function (OP, formatstring) {formatstring = formatstring | | "Ymd";var m, year, month, day;Switch (formatstring) {Case "YMD":m = Op.match (New
Oracle| stored Procedure | data | database
Project is over, want to write their own stored procedures exported to save a copy of this write a simple script, take out to share with you. In fact, it is very simple, mainly used to User_procedures, user_
Transformation
C # Out also some days, recently due to the need for programming, C # type conversion did some research, in the study of the collation of a share here with you, very applicable Oh!The content covers C # 's boxing/unboxing/aliases,
1. Delete DataFor example: Delete all sex-free datamysql> Delete from student where Gender is null;Example: Delete data with ID 2,4mysql> Delete from student where ID in (2,4);2. Clear the data table, leaving only the table structuremysql> TRUNCATE
7. Custom Functionsuser-defined functions (user-defined function,udf) are a way to extend MySQL, using the same functionality as built-in functions. Contains two prerequisites, parameters and return values. There is no inherent connection. functions
The first step is to create the function f_dim_dayCREATE PROCEDURE F_dim_day (in Start_date VARCHAR (a), in Date_count int)Begindeclare i int;Set i=0;DELETE from Dim_day;While IINSERT into
Perform a full hot backup of the Extmail database daily 01:00, and you can fully recover!First, create a backup script, as follows:VI mysql_extmail_bak.sh#!/bin/bash# program# use mysqldump to Fully backup MySQL data per week! bakdir=/mysqlback# the
Introduction to a custom function (1) Custom function definition The user-defined function (user-defined function,udf) is a way to extend the MySQL database using the same usage as built-in functions. (2) Two necessary conditions for a custom
Super powerful Form Verification
Form Verification class Validator v1.01
Script
/*************************************** **********
Validator v1.01
Code by my Buddha
Wfsr@cunite.com
Http://www.cunite.com
***********************************
PHP perpetual calendar implementation code. Use PHP to implement perpetual calendar: get the total number of days of the current month to be processed $ days get the number of the current month to be processed is the number of days of the week $
These days I have been studying shell scripts and writing some system load and CPU monitoring script programs. Without nagios monitoring software, as long as the server can access the Internet, you can send an email to remind the administrator of
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.