|
|
|
|
![]() ![]() |
Oct 8 2004, 05:11 PM
Post
#1
|
|
|
End Of Computer Group: Members Posts: 346 Joined: 1-September 04 From: .:: MARS ::. Member No.: 28 |
i'm desgining my web site
i want to set id for per files for example : news=show&id=256 and link to these file please help me |
|
|
|
Oct 8 2004, 11:00 PM
Post
#2
|
|
|
Premium Member Group: [HOSTED] Posts: 336 Joined: 22-September 04 Member No.: 798 |
hm, you're getting it wrong
you have to make a php page, for example index.php and then in that file, you type for example if (isset(news) && news==show){ if (id==1){ include("pagex.html"); } if (id==2) ... if (id==256){ include ("pagey.html"); } something like this. you could replace the huuuuuge amount of 'if's' by using a table in a mysql database that says which id refers to which url. and then do something like mysql_query("select name from pages where id=".*_GET['id']); and then you have the name of the page. all you have to do now is import it. |
|
|
|
![]() ![]() |
Similar Topics
| Topics | Topics | |
|---|---|---|
|
|
|
|
Lo-Fi Version | Time is now: 6th September 2008 - 06:36 PM |