. But my stress has vanished with the arrival of the lecturer. I have to say I was lucky, teach me is Wang Hongjun teacher, many people are heard his name came. The teacher taught carefully, the teaching method is novel, is almost 0 basis of my easy to accept the class content, also learned to do their own. Teacher carefully troubleshoot, spare time we are familiar with the operation, the whole class study atmosphere is particularly good, I also learned a lot of things. Moving towards high-payin
Phpgzinflate unlimited encryption and solution code. PHP uses eval (gzinflate (str_rot13 (base64_decode (BASE64 encrypted content) to decrypt the non-extended php Tutorial encryption method: here there is an online, not bad. Trojan PHP uses eval (gzinflate (str_rot13 (base64_decode ('base64 encrypted content') to decrypt core code
Non-extended php Tutorial encryption method:
Here is an online product, which is not bad. It's okay to defend against Tr
The following is an example of using Php to classify and read unlimited columns. I hope this article will help you with the idea of classifying Infinitus columns: getting auto-increment IDs (that is, parent IDs) then obtain the sub-ID (uid sub-id) data in the database as follows:
Id: 1 uid: 0 I'm column 1
Id: 2 uid: 1 I'm column 2
Id: 3 uid: 1 I'm a subclass of column 1
Display result:I am column 1I am a subclass of column 1.I am column 2
Below
I wrote about the unlimited classification class I wrote a few days ago. it worked well.
The main idea is from: http://www.phpobject.net/ B ..?url=http://www.phpobject.net/blog/read.php? 49] [/url]
I will not explain the principle here. I will directly send the code.
PS: the code here cannot be used directly. it must be combined with some of my other library classes. It should be said that thinking is the most important thing. here we mainly provid
to be able to go to any category on the path, how can this be done? The explode () function is used here. because rout_id corresponds to rout_char, you can break them down: $ path = explode (":", $ rout_id); $ path_gb = explode (":", $ rout_char); at this time, all the classification information is broken down. now, we need to restore the path information in a link: for ($ I = 0; $ I ++) {$ a = $ I + 1; echo "", $ path_gb [$ I], ":"; if (empty ($ path_gb [$ I]) {break ;}} the code above impleme
A recursive function written by php to generate a drop-down list for unlimited classification
/*------------------*/
//-Recursively implement the infinite classification to generate the drop-down list function
//-$ Tpl-> assign ('sort _ list', createSortOptions ());
//-$ Tpl-> assign ('sort _ list', createSortOptions ($ sort_id ));
/*------------------*/
Function createSortOptions ($ selected =
PHP + Mysql unlimited classification a PHP project uses classification, but it is not confirmed that level 4 still needs to use Level 5, just think about creating an infinitely classification.
In the beginning, we thought that the database had four values as before, as shown below:
Id: Auto-increment | pid: parent class ID | xid: sort ID | classname: category name
Later I thought it was inconvenient to read and modify the data, and it was especially i
This article mainly introduces the example of PHP that does not require recursion to implement unlimited classification. it is actually a way of thinking and explained with a simple example, for more information, see the following two tree array operators that do not require recursion.
The code is as follows:
/*** Create a parent node tree array* Parameters* $ Ar array, data organized in the form of an adjacent list* $ Subscripts or associated key
Php user-defined functions recursively implement unlimited classification to generate a drop-down list, which improves efficiency and does not need to read data from the database every time.
The code is as follows:
/*------------------*///-Recursively implement the infinite classification to generate the drop-down list function//-$ Tpl-> assign ('sort _ list', createSortOptions ());//-$ Tpl-> assign ('sort _ list', createSortOptions ($ sort_id )
Php unlimited topic category reading implementation code. How to implement the Infinitus topic classification idea: get the auto-increment ID (that is, the parent ID) and then obtain the sub-ID (that is, the uid sub-id) in the database as follows: id: 1uid: 0 I am a topic 1id: 2uid: 1 I am a topic to implement the Infinitus topic classification idea: get the auto-increment ID (that is, the parent ID) then obtain the sub-ID (uid sub-id) data in the dat
each parent category, and when querying the information under the category,You can use: SELECT * FROM category WHERE pid LIKE "1, 3% ".
Analysis: compared with recursive algorithms, it has great advantages in reading data. However, if the query efficiency for all parent or subcategories of the classification is not very high, at least two queries are required, in a sense, I personally think it is not in line with the design of the database paradigm. If the number of fields increases to an infi
This article mainly introduces PHP recursive traversal of multi-dimensional arrays to achieve unlimited classification. it involves PHP recursive traversal of arrays related techniques and is very useful in linking menus and parent and child columns design, for more information about how to use PHP to recursively traverse multi-dimensional arrays, see the following example. We will share this with you for your reference. The details are as follows:
$strRe = '
By passing in simple raw data, you can derive n relationships between nodes, and you can output tree-like DOMNote: Please refer to the latest code on git.oschina.net (click "Source Sources" link)
/**
* Output Unlimited classification, I wrote the Oh ~
*
* @author binny_w@qq.com
* @since 2013-09-24 AM
*/
/* Use example */
/*
$arrAll = Array (
Array (' id ' = + 1, ' name
This article mainly introduces how PHP unlimited classification using CONCAT is implemented, the need for friends can refer to the following
First, the database design
---- table structure for table ' category '-- CREATE Table ' category ' ( ' id ' int (one) ' Not NULL auto_increment,
Here, the Catpath-link symbol is not fixed, you can choose, and so on special symbols.
Second, the implementation of PHP code
MySQL concat function can connect
Unlimited classification and tree node output
$ StrRe ='
Input simple raw data to obtain N relationships between nodes and output tree-like DOMNote: Please refer to the latest code on git.oschina.net (click the "source code" link)
/**
* The output is infinite classification. I wrote it myself ~
*
* @ Author binny_w@qq.com
* @ Since 2013-09-24 AM
*/
/* Example */
/*
$ ArrAll = array (
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.