"include" php help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
paul_20k
Forum Commoner
Posts: 45
Joined: Fri Nov 10, 2006 7:02 pm

"include" php help

Post by paul_20k »

hi

I had 4 frames in my all pages. I changed my html to php. I removed all frames from my pages and used "include" in all pages but I am getting the main contents of the pages below the left side menu table. I want the main contents parallel to side menu and just below the top menu. I have top menu, left menu and bottom bar on all the pages. Will I have to add or change some code in the included php files? visual interface for top, left and bottom looks fine.

Thanks
darkfreaks
Forum Commoner
Posts: 59
Joined: Sat Sep 09, 2006 3:59 pm

Post by darkfreaks »

try putting the include in a seperate tag at the top or move it around until you get it in the right order.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Consider including php files like copy and pasting the code into a single file. So the order of which you include them does matter.

I can't really provide a more insightful answer without seeing some code.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I would guess your HTML is wonky.
darkfreaks
Forum Commoner
Posts: 59
Joined: Sat Sep 09, 2006 3:59 pm

Post by darkfreaks »

i have to agree your includes are in the wrong order but without pasting any code we cant help you. :lol:
paul_20k
Forum Commoner
Posts: 45
Joined: Fri Nov 10, 2006 7:02 pm

Post by paul_20k »

Thanks all

I will try that copy and paste approach and keep you updated.

Thanks
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

paul_20k wrote:Thanks all

I will try that copy and paste approach and keep you updated.

Thanks
No no I did not mean to copy and paste. I meant that including is LIKE copy and pasting.
paul_20k
Forum Commoner
Posts: 45
Joined: Fri Nov 10, 2006 7:02 pm

Post by paul_20k »

Hi Jcart

I understood it before...thanks...:)
Post Reply