0

So I am a bit new to MYSQL and I've been learning allot more about relational databases but I am a bit stumped with one subject in mind. I notice allot of sites have things like domain.tld/variable. I understand how this works by using /?variable=name but most users would never use that. So how does one go about letting users pull content based on the principal listed?

4

1 回答 1

0

实际上,这与数据库无关。

访问url时,使用url重写,在后台改变url。当用户输入domain.com/data时,会打开 php 脚本(或其他任何东西)domain.com?variable=data

于 2013-05-11T13:37:16.153 回答