GetInfo (3); if (Whxbb::iserror ($info)) New Whxbb_error ("read the article information failed, please try again later", 1, Whxbb_error_echo); else if ($info = = 0) New Whxbb_error ("No Records Found You need", 2, Whxbb_error_echo); else {echo $info
The controller "controllers"
Simply put, the function of the controller is to accept the request. It uses the obtained method, where a function module is loaded through a URI to refresh or submit a presentation layer. The controller uses the $_get
This two-day project development, need to implement some more practical functions, using two of the SQL used, summed up, afraid to forget the next time.
1. Retrieving content in the database that matches the content submitted
For example: The data
Insert (today's weather, WHXBB, the local area of Beijing today has rain); If error occurs, the error message pops up and returns to the previous page (Entry page) if (Whxbb::iserror ($result)) {New Whxbb_error ("Error:". $result->getmsg (). "(" .
The Hungary markup method adds a prefix to the variable type or scope before the variable name.
1: int value; // non-Hungarian
2: int nValue; // the n prefix denotes an integer
3: double width; // non-Hungarian
4: double dWidth; // the d
Yesterday I was prepared to write an kbmmw for webserver. However, during the debugging process, I found that the image file cannot be normally displayed. Tracking for a long time
The problem is caused by the conversion of string and ansistring in
Before copying the corresponding sheet, we copied a sheet at a time, which is obviously too low-level. This time we made an upgrade, we could copy n sheets at a time, and automatically matched according to the name, display the copied report name in
Phpmailer v5.1 download
Start with:
$ AltBody -- attributeFrom: PHPMailer ::$ AltBodyFile: class. phpmailer. phpNote: the setting of this attribute is that HTML standby display is not supported in the mail body.
AddAddress -- MethodFrom: PHPMailer:
Analyze and introduce common PHP database solutions. We will encounter many problems when using PHP to connect to the database. This article exposes common database problems in PHP applications, including database pattern design and database access.
Common PHP database solutions. We encounter many problems when using PHP to connect to the database, this article exposes common database problems in PHP applications, including database pattern design and database access. we encounter many problems
The PHPerror_log () function processes error logs. The PHPerror_log () function is mainly used to write error logs. it can be used in development projects that are developed by many people or that are complex and have no unit test.
The PHP
You can create PHP database design, database access, and database-based PHP business logic code in many ways, but it generally ends with errors. This article describes common problems in PHP code for database design and access, and how to fix these
All phpmailer objects and attributes-original translation-required for phpmailer users. Phpmailer: phpmailer is an excellent Sender program, but it has little Chinese information, so I manually phpmailer all objects and attributes original Chinese
The Error_log () function sends an error message to the server error record, file, or remote destination. It's syntax
Error_log (message,type,destination,headers);
parameter
description
message td> required.
Implement the MVC controller in PHP. TheController [controller] in short, the controller is used to accept requests. It uses The obtained method. here, a function module is loaded through URI to refresh or submit The Controller [Controller]
Simply
Pear: HTTP_Upload introduction. The HTTP_Upload class library of Pear provides an encapsulated html form file Upload handler that uses the Pear error system. This feature allows you to easily verify the upload of multiple files at a time.
The
The & nbsp; Controller [Controller] in short, The Controller is used to accept requests. It uses the obtained method. here, a function module is loaded through URI to refresh or submit a presentation layer. The controller uses the $ _ GET automatic
Use of the phperror_log function. Let's take a rough look at the error_log () function. Let's take a look at the manual explanation: error_log (PHP3, PHP4, PHP5) boolerror_log (stringmessage [, intmessage_type [, stringdestinat. let's take a look at
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.