Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
micah
Hangin' Around



Joined: May 25, 2006
Posts: 40

PostPosted: Sun Mar 15, 2009 8:25 am Reply with quote

I am trying to run multiple header.php files by topic so that I can customize meta keywords.

The topic ids are called from this column in the database "mstid"

I was thinking that I could use something like the following byt I do not know how to tweak it to work

if ( mstid('5') ) {
include ('/header.php');
}
else {
include ('/header1.php');

your help would be appreciated.

Micah
 
View user's profile Send private message
trunks
Worker
Worker



Joined: Oct 05, 2007
Posts: 152
Location: United Kingdom

PostPosted: Sun Mar 15, 2009 8:39 am Reply with quote

dont know if this is the fix but i know you do not need the '/' infront of the file name Smile

-Trunks
 
View user's profile Send private message Visit poster's website MSN Messenger
micah







PostPosted: Sun Mar 15, 2009 8:48 am Reply with quote

I will try that right away

no still no luck

if (mstid('5') ) {
include ('header.php');
}
else {
include ('header1.php');
}
 
micah







PostPosted: Sun Mar 15, 2009 11:21 am Reply with quote

got it ....

thanks
 
trunks







PostPosted: Sun Mar 15, 2009 1:55 pm Reply with quote

And the fix was? Smile
 
micah







PostPosted: Sun Mar 15, 2009 2:51 pm Reply with quote

that was rude of me ....

the fix was

if ($mstid == 10) {
include("header.php");
}

elseif($mstid == 11){
include("header1.php");
}
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©