Please tell me how to implement different interfaces with different IDs
Joker丶谦谦2019-08-04 11:38:25
0
1
1221
How to implement different interfaces with different IDs? For example, news.php?id=1 is contact information, news.php?id=2 is introduction. Please tell me the principle or give me the code. Do you need to use $_GET[ 'id']
Write each page separately, then receive the value of id at the beginning of news.php to determine the value of id, and then use
require_once() based on the value of id Method, referencing the corresponding page file.