DiigIT | IT Community
No Profile Image
Welcome Guest
New User? Register | Login

A problem with Different browsers..

By: rekha singh | 04 Feb 2010 3:26 pm

Hi,

Here I am stuck in a problem creating a website in PHP
I have downloaded Wamp Server Version 2.0
PHP 5.3.0
Apache 2.2.11
Mysql 5.1.36

I have tried to load mypage.php file in FIREFOX(v5.0) :-
this is showing me all data but my html data even not showing properly in browser problem is it doesn't showing me IMAGES that i have used in mypage.php file within html coding table data tag.I have used XHTML coading during creation of mypage.php

If there is any fault that i am creating or solution that you may know please give me

Thanks for giving some time to view my problem
 

Comments

Can you give us code of mypage.php file

 

By: rekha singh | 04 Feb 2010

<?php require_once( "includes\ connection. php"); ?>
<?php require_once( "includes/ functions. php"); ?>
<?php if (isset($_GET[ 'menu_iteam_ no'])){
$sel_menu=get_ rawdata($ _GET["menu_ iteam_no" ]);

} else {
$sel_menu= NULL;
}
?>
<?php if (isset($_GET[ 'menu_iteam_ no'])){
$content=content( $_GET["menu_ iteam_no" ]);

} else {
$content= content(1);
}
?>

<?php include("includes/ header.php" ); ?>

<table id="structure" border="0" cellpadding= "0" cellspacing= "0" width="100%" height="100% ">
<tr valign="top" >
<td width="10%" rowspan="0" background=" pictures\ bac.jpg"> </td>
<td id="navigation" width="20%" height="500px" >
<?php //navigation bar creation
if(isset($_GET[ "menu_iteam_ no"])){
echo navigation($ _GET["menu_ iteam_no" ]);
} else{
$ab=1;
echo navigation($ ab);
}
?>
<div class="images" >
<a href="Mainpage. php?menu_ iteam_no= 8"><img alt="privatedine" class="privatedine" src="pictures\ slate.jpg" ></img></ a>
<img alt="address" class="address" src="pictures\ address.jpg" width="200px" />
</div>
</td>
<td id="page" width="60%" height="500px" >
<?php if(!is_null( $sel_menu) ){ ?>

<h1 class="SelectedMenu "><?php echo $sel_menu['Menu_ name'] ; ?> </h1>
<?php } else { ?>
<h1 class="SelectedMenu "> Home </h1>
<?php } ?>


<?php // Brings content from db by id ?>
<?php
echo $content["Content" ];
?>

</td>
<td width="10%" rowspan="0" background=" pictures\ bac.jpg"> </td>

</tr>

</table>
<?php require("includes/ footer.php" ); ?>
 

By: rekha singh | 04 Feb 2010

hey ,

plz replace the backward slashes(\) to forward slashes(/) in all the image tag

"background= "pictures\ bac.jpg"

to

"background= "pictures/ bac.jpg"


 

By: rekha singh | 04 Feb 2010

Leave a comment

Enter the text in the image
img
Can't read?
Type the characters you see in the picture below.


Close Move