面包屑导航问题。求救
例如,发表一篇文章,该文章属于b分类。将自动往数据库中插入一条信息。
当我查看我的文章的时候,请问我要如何让页面显示出面包屑导航。如下一样,我是超新手,很多咚咚都不太明白,请指点。。
首页>> A分类>> b分类
回复讨论(解决方案)
/*select catid, upid, catname from 分类表执行比读取的数组 $a。是这样的一个数组*/$a = array( array('catid' => 1, 'upid' => 0, 'catname' => 'A分类'), array('catid' => 2, 'upid' => 1, 'catname' => 'b分类'),);$a = find_parent($a, 'catid', 'upid');$res = array();$p =& $a[2]; //当前文章的所属分类while($p) { array_unshift($res, $p['catname']); if(! isset($p['parent'])) break; $p =& $p['parent'][$p['upid']];}echo join(' >> ', $res);
函数 find_parent 见 http://bbs.csdn.net/topics/370094009

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

The horizontal figure 8 on the navigation map means haze, moderate is a yellow 8 warning signal, and severe is an orange 8 warning signal.

Both Android and iOS versions of Baidu Map App have released version 18.8.0, which introduces the traffic light radar function for the first time, leading the industry. According to the official introduction, after turning on the traffic light radar, it supports automatic detection of traffic lights while driving without having to enter a destination. Beidou High-Precision can position in real time. , 1 million+ traffic lights across the country automatically trigger green wave reminders. In addition, the new function also provides full silent navigation, making the map area more concise, key information clear at a glance, and no voice broadcast, allowing the driver to focus more on driving. Baidu Maps will launch a traffic light countdown function in October 2020, supporting real-time countdown prediction. Judgment, the navigation will automatically display the remaining seconds of the countdown when approaching a traffic light intersection, allowing users to always grasp the road conditions ahead. Traffic light countdown to December 31, 2022

The football navigation voice package in the "Amap Navigation" software is one of the navigation voice packages for the car version of the Amap map. The content is the navigation voice of Huang Jianxiang's football commentary version. Setting method: 1. Open the Amap software; 2. Click to enter the "More Tools" - "Navigation Voice" option; 3. Find "Huang Jianxiang Passionate Voice" and click "Download"; 4. On the pop-up page, click " Just use voice".

According to news from this site on April 29, Amap officially announced the launch of an upgraded version of driving ETA (Note from this site: ETA is the estimated time of arrival, which refers to the estimated time it will take for the user to depart from the current moment and follow a given route to the destination. ) service, which aims to help users make more accurate route planning duration and traffic condition estimates, and assist users in making travel decisions. This map application is the latest upgraded Amap App. It introduces the "ultra-large-scale graph convolutional neural network model", which can better capture and learn traffic flow patterns, support urban road networks and highway systems, and can Accurately depict the spatiotemporal dynamic changes of traffic conditions. In addition, the new version of the map further integrates the iTransformer time series prediction model to support real-time analysis.

How to implement image browsing and thumbnail navigation through Vue? With the development of web applications, pictures play an increasingly important role in our daily lives. In many cases, we need to implement image browsing and thumbnail navigation functions. This article will introduce how to use the Vue framework to implement this function and provide code examples. In Vue, we can use the Vue plug-in to implement image browsing and thumbnail navigation functions. A popular plugin is vue-gallery, which provides a simple and easy-to-use interface

How to implement page jumps and navigation in uniapp. uniapp is a front-end framework that supports one-time coding and multi-end publishing. It is based on Vue.js. Developers can use uniapp to quickly develop mobile applications. In uniapp, implementing page jumps and navigation is a very common requirement. This article will introduce how to implement page jump and navigation in uniapp, and provide specific code examples. 1. Page jump Use the methods provided by uniapp to jump the page. uniapp provides a set of methods for implementation.

Baidu Map is used by many friends when going out. It can provide the fastest route and can also check various different travel methods. If you want to set navigation screen constants, come to the PHP Chinese website to see what the editor brought Method. How to set the navigation screen to stay on on Baidu Map: 1. First click to open the Baidu Map APP on your mobile phone and then click [Personal Avatar] on the upper left corner of the page to open it. 2. After coming to the personal center page, find the [Settings] function and click on it to enter. 3. Next, click the [General Settings] item in the settings page to enter. 4. There is a [Screen Always On] function in the general settings page. There is a switch button displayed behind it. Click the circular slider to set the button to on.

Breadcrumbs are a common navigation method that not only allows users to understand where they are, but also provides users with the function of returning to the previous menu. This article will introduce how to use the Vue.js plug-in to encapsulate the breadcrumb component. 1. Preparation work Before using the Vue.js plug-in to encapsulate the breadcrumb component, you need to install Vue.js and VueCLI, and introduce VueRouter into the project. 2. Create a breadcrumb plug-in. Create a plug-in file. First, create a breadcrumb package in the project.
