Jump to content
xisto Community
Sign in to follow this  
soleimanian

how i can set id for my files

Recommended Posts

hm, you're getting it wrongyou have to make a php page, for example index.phpand then in that file, you type for exampleif (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 likemysql_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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.