Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> how i can set id for my files
soleimanian
post Oct 8 2004, 05:11 PM
Post #1


End Of Computer
Group Icon

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

Go to the top of the page
 
+Quote Post
marijnnn
post Oct 8 2004, 11:00 PM
Post #2


Premium Member
Group Icon

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.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Embeding Font Files(1)
  2. Redirecting All Htm Files To Php Site...(8)
  3. Embedding PSD Files Into Dreamweaver(6)


 



- Lo-Fi Version Time is now: 6th September 2008 - 06:36 PM