PHPclassdbda{ Public $host= "localhost";//Server Address Public $uid= "Root";//Database user name Public $pwd= "123";//Database Password//Execute SQL statement, return the corresponding result of the function//$sql is to execute the SQL
*{margin: 0px auto;//remove an element's own margin Auto Centerpadding:0px;//Remove the default paddingfont-family: Microsoft ya black;//Set Font}#List{width:350px;height:400px;}.Py{margin:10px 0px 0px 0px;width:350px;height:35px;}. py:hover//effect
Yii2 gridview shows a column case, yii2gridview
Author: White Wolf Source: http://www.manks.top/article/yii2_gridview_visible
The copyright of this article belongs to the author. You are welcome to repost this article, but you must keep this
[Redis] redis installation and testing under centos, rediscentos
Download the software and run the wget xxx command. The parameter is url.
For example:
Wget http://download.redis.io/releases/redis-3.0.0.tar.gz
Decompress and run the tar command.
Classical algorithm learning-exchanging Two integer data
The exchange of two numbers is often used in programming. Of course, we can implement them in a common way or in a variety of odd ways. Here we use three more conventional methods. The odd
Three handshakes and four disbanding processes of TCP connections, and four disbanding of tcp handshakes
When the client and server use TCP connection to transmit data, they need to establish a connection through three handshakes and disconnect the
Orm obtains the attribute values in the join table, and the attribute values in the orm table.
ORM-relational Object Model
The Eloquent ORM in laravel is used to interact with data tables. Each database table interacts with a corresponding "model".
PHPstorm usage tips
Update slowly and accumulate a little bit. Problems Encountered during use
Settings:(2016.4.15)
1: annotation template. phpstorm has a very powerful annotation template, which can be changed at any time as needed and set
Php uses regular expressions to verify Chinese characters,
Php uses preg_match to match and determine whether a string contains Chinese or whether it is both Chinese as follows:
$ Str = 'php learning blog'; if (preg_match ('/[\ x7f-\ xff]/', $ str
Classical algorithm learning-directly select sorting
Directly selecting sorting is similar to directly inserting sorting. Data is divided into ordered and unordered areas, the difference is that direct insertion of sorting is to insert the first
[PHP Learning Log] Simple Session usage, php Learning Log session
First, let's explain some Session explanations: currently, the most practical network protocol is HTTP Hypertext Transfer protocol, which is "stateless, the so-called "stateless"
Use Php ssh2 extension to automatically submit svn to the test server, ssh2svn1. Install the ssh2 Extension
(1) window
1. Download php extension ssh2 extensions. After decompression, there will be three files, libssh2.dll, php_ssh.dll, and php_ssh2.
Public Account weather query interface instance, Public Weather query instance
This is an interface for weather query from Baidu API. It supports weather query over the past seven days and the next four days. This interface is good and is shared
Configure the Apache Virtual Host in window.
1. You need to install the Apache service first. I will not describe how to install it here.
2. First configure the window virtual domain name to open hosts
Path: C: \ Windows \ System32 \ drivers \
PHP encryption 3DES error Call to undefined function: mcrypt_module_open () how to solve, mcryptmoduleopen
I am also a beginner in PHP. After learning about the basic principles of php through w3cschool, I started writing. But it is still a cainiao.
Analysis of PDO transactions in PHP and phppdo Transaction Processing
This article analyzes the PDO transaction processing in PHP. We will share this with you for your reference. The details are as follows:
Transaction processing has four features:
PHP template engine Smarty built-in function section, sectionelse Usage Details, smartysectionelse
This article describes the usage of sectionelse, a built-in function section of the PHP template engine Smarty. We will share this with you for your
PHP reads mssql, json data garbled Chinese characters,
PHP and web pages use UTF-8 encoding, database is SQL server2008, use default encoding (936, that is, GBK encoding)
When reading database data, use the json_encode () provided by php to return
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