FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


PHP help plz





rajhank
first check out this website

plz open in IE

www.msdhoni.in/index.php

the first error u see is

Notice: Undefined index: page in c:\domains\msdhoni.in\wwwroot\index.php on line 166


plz tell where the prob is, yeah i know i asked for the prob in another thread also but there is more

Arrow i want on main content page , which is in the center to have a scroll-bar, how can i do it.

now open the same above link in firefox, you can see the layout is all disturbed, how can i make it correct like it is in IE, plz tell
shamil
As i see, everytime you display the content according to the page variable. Like http://www.msdhoni.in/index.php?page=endorse. But when site is first opened there is no page varible defined. So reason may be you attempt to use $_GET["page"] at line 166 before checking if it is set or not. Check if it is set before use.
if( isset( $_GET["page"] ) ) then continue..

You have put a lot of div tags in html code. I don't recommend to use div tags unless it is needed. For ex
Code:
<div align="center">
  <center>
  <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#181818" id="AutoNumber1">
    <tr>
      <td><img border="1" src="dhonibanner.jpg" width="927" height="147"></td>
    </tr>
  </table>
  </center>
</div>

You could write above code like
Code:
  <table align="center" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#181818" id="AutoNumber1">
    <tr>
      <td><img border="1" src="dhonibanner.jpg" width="927" height="147"></td>
    </tr>
  </table>

May be div tags disturb layout in firefox.

As I understood you want to place one more page in the current one. You can use iframes to do that.
thanks, wish i helped you
hexkid
rajhank wrote:
open the same above link in firefox, you can see the layout is all disturbed, how can i make it correct


http://validator.w3.org/
rajhank
hey shamil, i removed all div tags but still the layout is all mixed up and the php code u gave, where should i insert it plz tell and no i don't want to insert more page i want a scroll bar to be there for the middle section.

and, hexkid the website says

Sorry, I am unable to validate this document.....

plz help
shamil
I hadn't opened the link in firefox before. Just i thought the reason will be due to div tags. I opened it in firefox and i don't see any page disturbance except a little more spacing on the bottom-left between image and content. Look www.qafqaz.edu.az/firefox.jpg

If you haven't solved the error yet if you don't mind pm me the line 166 of index.php file.
rajhank
hey shamil, yeah i also checked the problem is due to some spacing , tell me what should i do to make it correct and also plz tell me how can i add a scrollbar on the section in which the content comes.(the center one where flgs of many countries are there) and i will shortly PM u the 166 line.
b4r4t
You may ad scrollbars to DIV's Smile Just give them CSS atribute:

overflow: auto;

But that means that:

a) You have to change layout to DIV's

or

b) You have tu put a DIV into table and give it a specific size of your choise (width'n'height)
Related topics
Mysql And PHP HELP PLZ
help plz
Php help
The noob needs help/Plz
A problem with my computer.....need help...plz
mysql/php help please
Need some php help.
How to start using PHP? Help!
PHP Help
php HELP!!!
PHP Help Forum
PHP Help please
help plz
php help
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.