Jump to content

[SOLVED] php include does not work


gwolff2005

Recommended Posts

Hi guys I need your help, please.

I have a php file (indexmain.php) and at the beginning I write

<?php include("indexmenu.php"); ?>

Now the problem is that some layers and whatever cover parts of the included file, with other words: indexmain does not "start" after indexmenu but some graphics lay on top of indexmenu. Please help me. What could be the problem? I treid it already with

<p>

, but that did not work out as well Attached the code.... Thanks!

indexmenu

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Guntmar Wolff Life Mastery</title>
<style type="text/css">
<!--
.style2 {font-family: Verdana, Arial, Helvetica, sans-serif;

font-weight: bold;

color: #000033;

font-size: 15px;
}
#Layer1 {
position:absolute;
left:10px;
top:174px;
width:760px;
height:18px;
z-index:1;
}
-->
</style>
<script type="text/JavaScript">
<!--



function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script>
</head>

<body>
<table width="760" border="0">
  <tr>
    <td><div align="center"><span class="style2">Guntmar Wolff | Guntmar Wolff Life Mastery, Inc. | Professional Speaker and Author </span></div></td>
  </tr>
  <tr>
    <td><img src="pics/impassion.jpg" alt="impassion" width="752" height="129" /></td>
  </tr>
</table>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="759" height="18">
  <param name="flash_component" value="ImageViewer.swc" />
  <param name="movie" value="menubar3.swf" />
  <param name="quality" value="high" />
  <param name="FlashVars" value="flashlet={imageLinkTarget:'_blank',captionFont:'Verdana',titleFont:'Verdana',showControls:true,frameShow:false,slideDelay:5,captionSize:10,captionColor:#333333,titleSize:10,transitionsType:'Random',titleColor:#333333,slideAutoPlay:false,imageURLs:['img1.jpg','img2.jpg','img3.jpg'],slideLoop:false,frameThickness:2,imageLinks:['http://macromedia.com/','http://macromedia.com/','http://macromedia.com/'],frameColor:#333333,bgColor:#FFFFFF,imageCaptions:[]}" />
  <embed src="menubar3.swf" quality="high" flashvars="flashlet={imageLinkTarget:'_blank',captionFont:'Verdana',titleFont:'Verdana',showControls:true,frameShow:false,slideDelay:5,captionSize:10,captionColor:#333333,titleSize:10,transitionsType:'Random',titleColor:#333333,slideAutoPlay:false,imageURLs:['img1.jpg','img2.jpg','img3.jpg'],slideLoop:false,frameThickness:2,imageLinks:['http://macromedia.com/','http://macromedia.com/','http://macromedia.com/'],frameColor:#333333,bgColor:#FFFFFF,imageCaptions:[]}" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="759" height="18"> </embed>
</object>
</body>
</html>

 

indexmain

<?php require_once('Connections/Login.php'); ?>
<?php
mysql_select_db($database_Login, $Login);
$query_Recordset1 = "SELECT quotes.quote FROM quotes";
$Recordset1 = mysql_query($query_Recordset1, $Login) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Guntmar Wolff Life Mastery, Inc.</title>

<meta name="Title" content="The official site of Guntmar Wolff, a recognized authority on peak performance and the creator of Habits of Success and Passion">		<meta name="keywords" content="Guntmar Wolff, Guntmar, tony robbins, motivational speaker, tony, anthony, robbins, quality of life, motivation, leadership, mentoring, coaching, personal development, self-help guru, investment strategies, habist of success, spirit and soul, counseling, self help, online coaching, personal power, unlimited power, awaken the giant within, lessons in mastery, unlimited power, date with destiny, unleash the power within, get the edge, inner balance, namale, fiji resort, relationships, action, tools, strategies, set your goals, find your balance, find solutions, daily inspiration, inspiration, recent news, scheduled events, anthony robbins events, personal growth, customized strategies, extraordinary life, products, services, events">		<meta name="Description" content="The official site of Guntmar Wolff, a recognized authority on peak performance and the creator of Habits of Success and Passion">		<meta name="Robots" content="INDEX,FOLLOW">		<meta name="Author" content="Guntmar Wolff">		<meta name="Publisher" content="Guntmar Wolff">		<meta name="Copyright" content="Guntmar Wolff">		<meta name="Revisit" content="After 2 days">		<meta name="Language" content="English">		<meta name="date" content="2008-12-01">
<?php include("indexmenu.php"); ?>
<style type="text/css">
<!--
.style19 {
font-family: Verdana;
font-size: 11px;
}
#Layer1 {
position:absolute;
left:15px;
top:23px;
width:245px;
height:29px;
z-index:1;
}
#Layer2 {
position:absolute;
left:17px;
top:219px;
width:231px;
height:68px;
z-index:2;
}
#Layer3 {
position:absolute;
left:15px;
top:230px;
width:204px;
height:19px;
z-index:3;
}
#Layer4 {
position:absolute;
left:259px;
top:139px;
width:235px;
height:20px;
z-index:4;
}
#Layer5 {
position:absolute;
left:258px;
top:165px;
width:245px;
height:74px;
z-index:5;
}
.style20 {font-family: Verdana; font-size: 11px; font-weight: bold; }
#Layer6 {
position:absolute;
left:259px;
top:241px;
width:252px;
height:23px;
z-index:6;
}
#Layer7 {
position:absolute;
left:259px;
top:273px;
width:245px;
height:71px;
z-index:7;
}
.style21 {font-size: 9px}
#Layer12 {	position:absolute;
left:561px;
top:315px;
width:198px;
height:42px;
z-index:8;
}
#Layer8 {
position:absolute;
left:15px;
top:262px;
width:234px;
height:88px;
z-index:9;
}
.style22 {font-size: 2px}
.style24 {font-size: 3px; color: #FFFFFF; }
#Layer9 {
position:absolute;
left:515px;
top:292px;
width:202px;
height:14px;
z-index:10;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #000033;
}
-->
</style>
<script type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>

Link to comment
https://forums.phpfreaks.com/topic/156377-solved-php-include-does-not-work/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.