且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在我的php和mysql网站上从url访问用户配置文件

更新时间:2022-05-24 22:12:11

这个问题的一个解决方案是使用参数,你需要在url中包含参数,例如www.mydomain .com / page.php?username = usernamevalue,在page.php中你应该得到参数,在这种情况下是用户名,你可以用它来查询数据..如果你不希望参数显示在网址中你可以用ajax来执行这个动作
One solution for this question is to use parameter, you need to include parameter in the url for example, www.mydomain.com/page.php?username=usernamevalue, in page.php you should get the parameter which in this case is username and you can use it to query data..if you don't want the parameter to be showed in the url you can use ajax to perform this action