Provide a solution to the infinite classification of PHP, thank you very much!
Reply to discussion (solution)
True No limit exists only in theoryBecause all the node information must be stored in the media, and the capacity of the media is limitedSo "infinite pole classification" means maximizing in a limited range.Based on this understanding, different schemes can be selected according to the maximum l
PHP implements an infinite-level tree to achieve the two-level ability of the main menu. You can also develop the message board when you get the parent comments under the child comments! This is the realization of the infinite-level tree-type Function! Then we won't talk much. Take a look at the structure of the following database
createtable ' EMLOG_HUDHF ' ( ' id ' mediumint () unsignedNOT Nullauto_incr
PHP Infinite loop gets data (or message) information
I do not know PHP basically, because the project needs, I need to put JSP write live chat system embedded in PHP.
The only remaining question now is how to get the data in the frame (because the customer service will be asked to pop up the invitation chat at any time, so you need an invalid loop or message), and want to ask if PHP has an infinite loop and
Tags: unlimited data coverage
1. assume that you want to receive a lot of (or even unlimited) data, but the data has a range: for example, if you want to read the data sent by the serial port, the data range is 0x00-0xff.
2. If an array or container is directly defined for receiving, unlimited memory is required. This method is not feasible.
3. an ingenious method is to define an array (data [0xff + 1]) that covers the size of the required data range, but when receiving a data, it is subscrip
Native js achieves infinite loop carousel image effects and js carousel Images
Knowledge points
1. How to implement an infinite loop:
Determine whether to jump back to the first and last
You can also use loops to determine the current index value of an image.
Var newLeft = parseInt (list. style. left) + offset; // current offset + next offset = new offset list. style. left = newLeft + "px "; // current offs
. While a player place a new stone such that its chain immediately has no liberty, this chain willBe captured at once unless this action will also capture one or more enemy's chains. In that case,The enemy's chains are captured, and this chain is not captured.In effect, go also has advanced and complex rules. However, we only use these basic rulesMentioned above in this problem.Now we are going to deal with another game which is quite similar to go. We call it "
Sometimes we need to make a file manager likeTree Structure with infinite LayersBut how should we design it?
I. Data Tables:In fact, the infinite Layer data table design is very simpleOnly two fields are required in the data table.Node: NodeParent: the parent node of the node.For example, the following Tree Structure
Root|| A1|| B| C| Ding| A2| A3| B| B1| B2| C| C1| C2| C3| C4
The data table content is
Realize infinite Pole column classification idea: Get the self-increment ID (that is, the parent ID) and then get the child ID (that is, the UID sub-ID) data to the database as follows
Id:1 uid:0 I am the column 1
Id:2 uid:1 I am the column 2
Id:3 Uid:1 I'm a subclass of column 1
Show Results:I am the column 1I'm a subclass of column 1.I am the column 2
Here is the PHP code
Copy the Code code as follows:
$query = $this->db->query ("Select * from c
How to write a table of this kind if you do infinite classification
Specific News Page Table
CATE_ID------Current News parent category ID
SUBCATE_ID-----Current News Category ID
News classification Table
CATE_ID------------Category ID (including all categories and subcategories)
PID-------------parent Category ID of the current classification
I want to make him into an infinite categor
Recursive infinite level classification for PHP
Header ("content-type:text/html; Charset=utf-8 ");/**** @category Contry_category to achieve an infinite level classification, similar to the division of categories, commonly used in column navigation**//**+-------------------------------------------------------------------------------+| ID Name Category ID || 1 China 0 || 2 Beijing 1 || 3 Shanghai 1 || 4 U
Android Super simple auto infinite carousel diagram LoopviewI just need you to pass in the data.Demo Address Https://github.com/wanghao200906/Android-LoopViewEffect implementation1. Adding dependent libraries2. Adding to XMLCom.kevin.loopview.AdLoopViewAndroid:id= "@+id/main_act_adloopview"Android:layout_width= "Match_parent"android:layout_height= "540px" >3. Codeprivate void Initloopview () {Final Adloopview Mloopview = (adloopview) This.findviewbyid
Guess you like the infinite load(function () {var content = document.getelementsbyclassname ("content") [0];var footer = document.getElementsByTagName ("footer") [0];var winh = window.innerheight-footer.offsetheight;var ul = document.getElementById ("Like-ul");var isfinish = false;/** Describe: Create the loaded document fragment and insert it into the content* Arguments:content, the container to insert into* Return: Returns the inserted div*/function
PHP/** * Recursive method to achieve infinite level classification * @param array $list to generate a tree list of arrays [must have primary key ID and parent PID in the array] * @param int $pid = 0 Parent ID * @param int $level = 0 indent [To specify the number of class names to indent]*/functionGettree ($list,$pid=0,$level=0 ) { //Static indicates that a static variable is declared, and that its value is persisted in the function . Static $tr
Specifically, after entering the password and then to the login screen, infinite loop (may not be able to enter the password, this state I did not test)This scenario only applies to systems that have NVIDIA graphics drivers installed and the resolution is changed at the login interfaceIf you have not installed NVIDIA Graphics driver, then this scheme is not suitable, please choose another solution ~ ~1. Press CTRL+ALT+F1 to enter the command line inte
The background infinite loop scrolling effect is as follows:The steps are as follows:
After importing the background picture, set the format of the picture, such as;
2. The image format can also be set to texture format, but wrap Mode must be repeat[repeated]; then remember to apply it. [Explanation: Wrap mode: cycle modes; line wrapping mode; wrapping mode; winding]3. In the Hierachy view, create a new 2D object-〉sprite or an image to p
This article mainly introduces the JSON infinite folding menu to write examples, the need for friends can refer to the Recently read an article about the JSON infinite folding menu Feeling good writing, also studied the next code, so use their own coding way to do a demo in fact, such a menu item on our website or project navigation menu items are very common effect, especially in some e-commerce online o
When configuring the Android environment under Ubuntu, imagine starting ADB directly in the terminal like Windows, adding the ADB path to the environment variable as Linux and Windows, and export the ADB path to/etc/ Profile, can be a cup, after restarting the system, the infinite cycle login interface, through the multi-search data found a solution.The approach is as follows:1. Enter the login screen, do not enter the password, press and hold Ctrl+al
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