| | |
Manage Styles...
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Feb 2007
Posts: 15
Reputation:
Solved Threads: 0
Hello once again...
I have the sidebar and the header common in all the pages which are made in PHP.. The sidebar and the header are in an html..
But when i include them in my current pages(the one made in PHP) than the style sheets of both clash and the required output is not generated..
Plz Help..
I have the sidebar and the header common in all the pages which are made in PHP.. The sidebar and the header are in an html..
But when i include them in my current pages(the one made in PHP) than the style sheets of both clash and the required output is not generated..
Plz Help..
•
•
Join Date: Feb 2007
Posts: 15
Reputation:
Solved Threads: 0
Hello..
M extremely sorry for the late reply..
I am attaching all the files which are having the problem..
When i run the menu.php the stylesheet of it and sidebar.php conflicts..
Kindly have a look..
In this current attachments i am facing problem uploading the style.css and emx_nav_left.css files so have renamed it to .php resp...
So even u kindly rename the files to style.css and emx_nav_left.css resp..
Thank u...
M extremely sorry for the late reply..
I am attaching all the files which are having the problem..
When i run the menu.php the stylesheet of it and sidebar.php conflicts..
Kindly have a look..
In this current attachments i am facing problem uploading the style.css and emx_nav_left.css files so have renamed it to .php resp...
So even u kindly rename the files to style.css and emx_nav_left.css resp..
Thank u...
•
•
•
•
Hello..
M extremely sorry for the late reply..
I am attaching all the files which are having the problem..
When i run the menu.php the stylesheet of it and sidebar.php conflicts..
Kindly have a look..
In this current attachments i am facing problem uploading the style.css and emx_nav_left.css files so have renamed it to .php resp...
So even u kindly rename the files to style.css and emx_nav_left.css resp..
Thank u...
1. You have never attached the stylesheets to your pages. You have used in-line styles instead, that are messing the whole thing.
2. You have attached the style on the wrong place - you are adding styles inside the <body></body> element. Please note you have to add the <style ...></style> definitions in <head></head> section, not in body.
3. You are trying to include a page that has html head and body elements, so this results in conflicts with both pages. Note you are trying to include the second page before setting the headers of the first page, so it gets completely messed up.
I can do it for you, but you will never learn if you don't do it, so I will give you a short guide, and you have to fix it by yourself. So, start like this:
1. Edit your MENU.PHP file. Make the structure like this:
1. Add html opening tag.
2. Add <head> tag
3. Add meta tags for content
4. Add title tags
3. Add the Javascript section
4. Add the first css file, that defines styles for this menu.
5. Add the second css file, that defines styles for the second page.
6. Close the </head>.
7. Open the <body>
8. Enter the code of your right-hand menu.
9. After you finished with the right menu add the php include <?php
[php]<?php
include '../sidebar/finalside.php';
$id=$_GET['custid'];
#echo $id;
?>
[/php]
10. Close all elements like div-s.(Dreamweaver should guide you!)
11. Close </body> and </html>
2. Edit your finalside.php removing all tags like <html><head><body>. Leave only the tags that represent your content like <div><table> etc. You don't need the html, head and body section into this file, as it has been already defined in the menu.php.
That's all - it should work if you have done it correctly.
![]() |
Similar Threads
- Parse error: (PHP)
Other Threads in the PHP Forum
- Previous Thread: Parse error: parse error, unexpected T_STRING on line 12
- Next Thread: zip file upload
| Thread Tools | Search this Thread |
apache api array beginner binary body broken cakephp checkbox class cms code computing cron curl database date date/time delete display dynamic echo email error file files filter folder form forms function functions gc_maxlifetime global google host href htaccess html image include insert ip javascript joomla limit link list login mail memmory memory menu mlm msqli_multi_query multiple mycodeisbad mysql navigation oop parameter parsing paypal pdf php problem query radio random recourse recursion regex remote script search seo server sessions sms snippet source space sql static syntax system table thesishelp tutorial update upload url validator variable video web webdesign wordpress xml youtube





