Page 1/3 of source code (2) of a php Forum program imitating oso

Procedure 2: addforum. php Publish information Include ("c: mydbheader. inc ");?>If (empty ($ theme_id )){$ Theme_id = 0;}?>If ($ theme_id = 0 ){Print ' current location: homepage -- Forum ';}Else{Print ' current location: homepage -- Forum --

Not null and NULL

Not null | NULL: Specifies whether the column can be NULL. If neither NULL nor not null is specified, the column is considered NULLIn MySQL,Set a NULL value for a not null field,It does not make errors,MySQL automatically converts the NULL value to

Php batch delete data

The technology of deleting Articles in batches is not profound. I just want to write it down and share it with you. (Suitable for beginners :)1. On the article list page (list. php), name the multiple baskets "$ del_id []" and set the value to the

Discuz! 5. PHP code highlighting plug-in (dark dancer update)

Discuz! 5.0 Forum display style php code highlighting plug-in,Make the php code syntax coloring. comrades who like PHP can easily read the code.Added the html code running function.This plug-in was released by a previous Comrade Discuz! 4. the php

Recommended common editors in php

In addition to calling functions at the front end, eWebEditor also has strong background management functions. It can effectively Customize various functions of the editor as follows:Excel worksheet import (V4.3)EWebEditor provides the latest Excel

Data operation and paging used by phpfans message board

Copy codeThe Code is as follows: class mysql {Function connect ($ dbhost, $ dbuser, $ dbpw, $ dbname = '', $ dbcharset = ''){If (! @ Mysql_connect ($ dbhost, $ dbuser, $ dbpw )){$ This-> show ('can not connect to MySQL Server ');}If ($ dbname ){$

Incomplete automatic paging Solution

Test code $ Content = $ _ POST ["content"];// Echo $ content;$ Ft = array ("", " ");// Echo count ($ ft );$ Html = "abaaaaaaa cssssssssssssssssssd efdddddddddddddddddd ";Preg_match_all ("| () | U", $ html, $ out, PREG_PATTERN_ORDER );While (list ($

Prvalue query | PageRank Query

Copy codeThe Code is as follows:/*Filename: http://www.computer98.com/pr.phpVersion: 0.02Author: computer98.comFrom: www.computer98.comLast modified:Remark: reprinted. Please keep this information and its source.*/If (! Empty ($ _ REQUEST ['show _

30 minutes to use PHP to write a simple address book with a database, page 1/3

Reference the opening remarks of the previous article:I haven't been in touch with PHP for a long time, so there are some shortcomings. You are welcome to correct them and make everyone laugh.This tutorial is intended for beginners of PHP. It is the

A PHP template mainly wants to reflect the ideas

Ideas:To achieve a balance between speed and ease of use (mainly referring to the convenience of the Art Design), we adopted the method of generating PHP files from html files (compilation ?)I also want to balance the separation of display logic and

Simply filter HTML tags in strings

Function deleteHtml ($ scr){$ L = strlen ($ scr ); For ($ I = 0; $ I {If (substr ($ scr, $ I, 1) = "{// Current location$ Ii = $ I; // Stop the loop when $ I is longer than the character LengthWhile (substr ($ scr, $ I, 1 )! = ">" & $ I $ I ++; //

PHP updates the number of shopping carts (form part/PHP processing part)

Form part:Copy codeThe Code is as follows: "Id =" car ">] "Type =" text "id =" suliang [] "Value =" "/> PHP Processing:Copy codeThe Code is as follows:Require 'config. inc. php ';Require 'checklogin. php ';$ Username = $ _ SESSION ['username'];$

Detailed description of tail recursion

I have seen several articles about tail recursion over the past few days. I didn't have much idea about tail recursion before, so I went back and studied tail recursion.  Concept of tail recursionTail Recursion is a subset of recursive concepts. For

Usage of PHP options and information functions

BoolAssert(Mixed $ assertion [, string $ description])-check whether an asserted isFALSECopy codeThe Code is as follows:Assert_options (ASSERT_ACTIVE, true); // allows the use of the assert () functionAssert_options (ASSERT_WARNING, false); // no

In-depth use of PHP Data Cache

Copy codeThe Code is as follows:// Http://www.jb51.net/article/23093.htmFunction set_cache ($ name, $ value ){// Set relative or absolute directories. Do not add "/" at the end "/"$ Cache_dir = "./cache ";// Set the extension$ Cache_extension = ".

IIS + PHP + MySQL + Zend configuration (video tutorial)

Haha, haipi. I am thinking about how to write the IIS + PHP configuration tutorial. I accidentally found a video tutorial on the Internet, which really saves a lot of time, it's convenient for me. You can rest assured that the virus has been

Php advanced: unlimited classification page 1/4

1. AnalysisWhen we use php to create a website, classification is very important. The second classification is called subclassification under the classification. Currently, most websites are classified only into the third category:First category

Example of image proportional scaling in PHP

Copy codeThe Code is as follows:// Proportional scaling of the image// Because PHP can only operate on resources, you need to copy the image to be scaled and create a new resource.$Src?imagecreatefrom=('a.jpg ');// Obtain the width and height of the

Summary of common Special operators and functions in PHP (required for beginners of php)

Annotation symbol:// Single line AnnotationMultiline AnnotationUse of quotation marks''Single quotes, a simple string that can be taken without any processing;"" Double quotes, php dynamic processing and output, usually used to process $

Some related experiences and precautions for connecting php to mssql

To connect PHP to MSSQL, the system needs to install MSSQL and PHP. In the configuration of PHP. ini; Extension = php_mssql.dll; remove1. Connect to MSSQLCopy codeThe Code is as follows:$ Conn = mssql_connect ("Instance name or server IP Address",

Total Pages: 12780 1 .... 12329 12330 12331 12332 12333 .... 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.