且构网

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

重定向到页面。

更新时间:2022-04-29 03:17:35

使用包含用户ID和区域/页面名称的PHP数组或提取页面名称来自数据库。


Ronald:很酷:
Either use a PHP array containing userid''s and region/page names or extract the page names from a database.

Ronald :cool:



使用包含userid的PHP数组's和区域/页面名称或从数据库中提取页面名称。


Ronald:很酷:
Either use a PHP array containing userid''s and region/page names or extract the page names from a database.

Ronald :cool:



想法如何做到这一点,我的PHP水平是有限的。


虽然思考可以使用if statment


if id == 1然后

davidp.php

其他

如果id == 2




但是我不知道如何去做它

ideas how to do that, my level of php is limited.

although was thinkin could use if statment

if id==1 then
davidp.php
else
if id==2
else

but i dont know how to go about it


如果你想让用户选择区域编号或你显示区域页面它会产生diffrecne取决于他/她的名字或用户ID。这是什么?


在第一种情况下你可以有一个像
这样的数组

[php]
It makes a diffrecne if you want to let the user choose the region number or that you show the region page depending on his/her name or userid. Which is it?

In the first case you can have an array like

[php]