Unlimited classification. learn together.

Source: Internet
Author: User
The results of today's learning include recursion and unlimited classification. I hope you can learn more about them. None? Php listing categories include .. include. php; session_start (); if (empty ($ _ SESSION [user]) header (location: login. php); functiongetList ($ pid0, $ resultarray (), $ spac0) {$ spac + 4;

The results of today's learning include recursion and unlimited classification. I hope you can learn more about them. None? Php // list categories include '.. /include. php '; session_start (); if (empty ($ _ SESSION ['user']) header ('location: login. php '); function getList ($ pid = 0, $ result = array (), $ spac = 0) {$ spac = $ spac + 4 ;//

The results of today's learning include recursion and unlimited classification. I hope you can learn more about them. <无>
  "; Foreach ($ rs as $ key => $ value) {# drop-down display $ str. ="{$ Value ['catename']}";} Return $ str. ="";}Echo displayCate (0) ;?>
   
    Add category  Add category'; // The Real-Time Table ends here. // enter the category name catename and pidif (isset ($ _ POST ['sub']). {$ catename = $ _ POST ['catename']; $ pid = $ _ POST ['pid']; $ table = 'cate'; if (empty ($ catename )) {echo "category name cannot be blank";} else {cate ($ table, $ catename, $ pid); // call SQL. func. cate classification function in php }}?>

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.