Compilation of a simple message book without MYSQL Database Support

Due to the shortage of MySQL resources in China, it is neither too slow nor open to Chinese users. Therefore, in the days without MYSQL, it is more difficult for us to do something that is convenient for others and improve our websites. To get rid

Use PHP and ACCESS to write chat rooms (9)

Enterrm. php3The Code is as follows:$ ConnID = @ odbc_connect ("jtfcht", "admin ","");If ($ ConnID ){$ Result = @ odbc_exec ($ ConnID, "SELECT PassWord, LstTime, RoomID, RefRate FROM User WHERE UserID =". $ id );If (@ odbc_fetch_into ($ result, 0, &

Use ODBC pagination

$ Pagesize = 3; // you can specify the number of entries displayed on each page.// Calculate the total number of records$ Rs_num = "select count (*) as id from table ";$ Rs_num = odbc_exec ($ conn_id, $ rs_num );$ Rs_num = odbc_result ($ rs_num, "id

A serach database program written using mysql_odbc and php

query condition query condition User name: User address: User's phone number: // Backend PHPEcho " ";Echo "query result :";Echo"";Echo"";$ Conn = odbc_connect ("blue", "root ","");$ Name. = "% ";$ Add. = "% ";$ Tel. = "% ";$ Query = "select

Credit card verification procedure

//////////////////////////////////////// ////////////////// Credit card validation routine //// May 15,200 0 //// By ariso //// ValidateCardCode ($ number [, $ cardtype]) ////////////////////////////////////////// ////////////Function

PHP + DBM logging program (3)

6. log out of the logout. php3 file.Setcookie ("login", false, time () + 31536000 );Header ("location: login. php3 ");?>7. modify the information file modify. php3Require ("common. php3 ");$ Id = $ login;If ($ submit ){If ($ name = "") error ("enter

Challenge the source code of the best message book (5)

message book message Require ('config. php ');?>$ Initial_record = 0;$ Sort_field = 'key _ liuyan ';$ Sort_direction = 'desc ';If (strlen ($ arr_request ['initial _ record ']){$ Initial_record = $ arr_request ['initial _ record '];$ Sort_field =

Analysis of extract () functions in PHP

Recently, when reading a cool man's code, I saw a very useful function: extract (). Its main function is to expand the array and use the key name as the variable name, the element value is a variable value, which provides another convenient tool for

Php code for mailbox collection (capture the email address on the webpage)

Copy codeThe Code is as follows:$ Url = 'HTTP: // www.jb51.net'; // This webpage absolutely contains an email address.$ Content = file_get_contents ($ url );// Echo $ content;Function getEmail ($ str ){// $ Pattern = "/([a-z0-9] * [-_ \.]? [A-z0-9] +

Php Data Structure and algorithm (PHP description) quick sort

Copy codeThe Code is as follows:/*** Quick sort***/Function sort_quick ($ arrData ){If (empty ($ arrData) |! Is_array ($ arrData) return false;$ Flag = $ arrData [0];$ Len = count ($ arrData)-1;If ($ len = 0) return $ arrData; // if only one data

PHP sprintf () function application (Definition and usage)

Syntax sprintf(format,arg1,arg2,arg++) Parameters Description Format Required. Conversion format. Arg1 Required. Specifies the parameter inserted at the first % symbol in the format string. Arg2

A black humorous Analysis of Timestamp obtained using mktime in PHP

The following code is a timestamp provided by most people on the Internet. At first glance, it can only be said that the current date is obtained, rather than the timestamp. Do not explain it more!Copy codeThe Code is as follows:$ Now = mktime (0, 0,

PHP native template engine simplest template engine

Copy codeThe Code is as follows:$ A = array ('A', 'B', 'C');Require 'template/demo. php'; // reference the template?> Template file:Copy codeThe Code is as follows: template test Copy codeThe Code is as follows:Key Value: // Array Iteration//

PHP section 2 data type conversion

In the following cases, the variable is considered to beNULL: AssignedNULL. Not assigned. QuiltUnset (). NULLThe type has only one value, which is a case-insensitive keyword.NULL(You can write NULL or null ). Convert a variableNullType will

Php code used to check whether a geographic IP address is available

Copy codeThe Code is as follows:/*************************************** ******* Function name: curl_string ($ url, $ proxy)* For Use: Check the proxy IP Address* Author: Li feilin* Date: 2011-11-09*****************************************

Introduction to regular expression functions in PHP

Regular Expression (Regular Expression)Regular Expression System:1. POSIX2. PerlThe regex used in PHP is PCRE:NOTE: PCRE (Perl Compatible with Regular Expressions, Perl Compatible Regular Expressions)PCRE Syntax:1. delimitersMust appear in pairs.

PHP _ autoload function (automatic loading of class files) Usage

This is also one of the basic ideas of OO design. Before using PHP5, to use a class, you only need to directly include it using include/require. The following is an actual example:Copy codeThe Code is as follows:Class ClassA {Public function _

PHP test program running time class

The class is very simple, mainly using several Function Array Functions list (), string split into array functions explode (), get the timestamp and microsecond Number of microtime (), the Code is as follows:Copy codeThe Code is as follows:Class

Php code for retrieving Baidu's popular word data

Copy codeThe Code is as follows:/*** Get Baidu's buzzwords* @ User Xiaojie* @ From http://www.isharey.com /? P = 354* @ Return array returns Baidu's buzzword data (array return)*/Function getBaiduHotKeyWord (){$ TemplateRss = file_get_contents

Fgetcvs in linux

We can see that someone adds a 'or any halfwidth symbol to the front of a Chinese character string to let the bug remove it, but this is too troublesome. Finally, we can find a function to simulate the fgetcsv function.Copy codeThe Code is as

Total Pages: 12780 1 .... 12459 12460 12461 12462 12463 .... 12780 Go to: GO

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.