how to add active to a tag and li tag with php

后端 未结 5 1421
情深已故
情深已故 2021-01-24 01:45

Trying to get my PHP navigation bar to work. I am trying to echo the page where the user is on with the attached class of active if the page is current.

Here is my code

5条回答
提交回复
热议问题