简体   繁体   English

当有人转到 url https://example.com/{username} 时,我想从 db 获取并显示页面上的用户信息

[英]I want to fetch and display users info on page from db when someone goes to the url https://example.com/{username}

I have user information in the database table.我在数据库表中有用户信息。 I want to fetch and display the user's info on the page from DB when someone goes to the URL https://example.com/{username} .当有人访问 URL https://example.com/{username}时,我想从 DB 获取并显示页面上的用户信息。 But I am confused about how to get it done since the https://example.com/{username} page doesn't exist.但是我对如何完成它感到困惑,因为https://example.com/{username}页面不存在。 I am using PHP and MySQL.我正在使用 PHP 和 MySQL。 I am in the learning phase.我正处于学习阶段。 It would be nice if someone could tell me what I need to get this done and what am I supposed to learn for this.如果有人能告诉我完成这项工作需要什么以及我应该为此学习什么,那就太好了。

You can try -> W3Schools Let us know about your progress.你可以试试 -> W3Schools让我们知道你的进步。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用户系统为example.com/username - How to make users system example.com/username 我可以从https://example.com拨打http://api.example.com吗? - can i make a call to http://api.example.com from https://example.com? Avoid multiple page redirects http://example.com > https://example.com -> https://www.example.com - Avoid multiple page redirects http://example.com > https://example.com -> https://www.example.com 键入example.com时,域不会转到https://example.com - Domain won't go to https://example.com, when example.com is typed http://example.com/fruits/apple我想重定向到http://example.com/pen/apple - http://example.com/fruits/apple I want to redirect to http://example.com/pen/apple 如何处理从example.com/search/?s=some到example.com/search/some的URL - How to manipulate the URL from example.com/search/?s=some to example.com/search/some 如何将example.com/index.php#anchor的URL重写为example.com/anchor? - How do I rewrite the URL for example.com/index.php#anchor to example.com/anchor? 在htacess中从https://example.com重定向到https://www.example.com - Redirecting from https://example.com to https://www.example.com in htacess 检测URL标记example.com/page.php#anycontent - Detect URL tags example.com/page.php#anycontent 传递example.com时,parse_url()返回错误 - parse_url() returns an error when example.com is passed
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM