how can i call a file from page_id

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
manojsemwal1
Forum Contributor
Posts: 217
Joined: Mon Jun 29, 2009 4:13 am
Location: India

how can i call a file from page_id

Post by manojsemwal1 »

<div id="container">
<div id="menu">
<ul>
<li class="page_item page-item-4"><a href="http://www.transitionderby.co.uk/?page_id=4" title="Calendar">Calendar</a>li></ul>
</div>

Somebody help me to try how the above href link call the Calender html file from page_id.
:banghead: :banghead:
thanks
Manoj Semwal
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: how can i call a file from page_id

Post by jackpf »

what?
manojsemwal1
Forum Contributor
Posts: 217
Joined: Mon Jun 29, 2009 4:13 am
Location: India

Re: how can i call a file from page_id

Post by manojsemwal1 »

<a href="http://www.transitionderby.co.uk/?page_id=4" title="Calendar">Calendar</a>
here after?page_id=4 is calling a file calender file.
how can i call a file giving only page_id.
while when we use href link we define like <a href="http://www.transitionderby.co.uk/calender.html" title="Calendar">Calendar</a>
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: how can i call a file from page_id

Post by jackpf »

You mean you want to use mod_rewrite?
manojsemwal1
Forum Contributor
Posts: 217
Joined: Mon Jun 29, 2009 4:13 am
Location: India

Re: how can i call a file from page_id

Post by manojsemwal1 »

yes u got it
pl tell me how to do that..........
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: how can i call a file from page_id

Post by jackpf »

Like this?

Code: Select all

^calendar$ index.php?page_id=4
manojsemwal1
Forum Contributor
Posts: 217
Joined: Mon Jun 29, 2009 4:13 am
Location: India

Re: how can i call a file from page_id

Post by manojsemwal1 »

Thanks for Your Reply

can u explain breifly because iam new bibe in php. to show ^calendar$ index.php?page_id=4

where we have to give the page_id in calender.html page.......
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: how can i call a file from page_id

Post by jackpf »

Put that in a htaccess file. Google mod_rewrite for more information and stuff.

Btw, I didn't read your first post properly, if you want calendar.html, then try this:

Code: Select all

^calendar\.html$ index.php?page_id=4
manojsemwal1
Forum Contributor
Posts: 217
Joined: Mon Jun 29, 2009 4:13 am
Location: India

Re: how can i call a file from page_id

Post by manojsemwal1 »

Once again thanks ........

pl visit the site http://www.transitionderby.co.uk for your reference...........

Acually here after the domain name /?page_id=2 is showing insteadof .html file.
pl check the left pane menu. here all hyperlink having a id.
I want to know how to define a hyperlink in id.
i wnat to know how to do this....

Manoj
Post Reply