Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem with backround images (php and html)

Status
Not open for further replies.

mailerman

Technical User
Jan 2, 2007
29
0
0
SE
as you se below is my code, the problem i have is that NO backround images whatsoever is loaded in internet explorer but still is shown in Firefox, i cant find the problem, can you? :(

i have 3 backround images in total and noone shows in IE


Code:
<head>
<meta http-equiv="Content-Language" content="sv">
<style>
<!--
.style2 {
	color: #FF0000;
	font-weight: bold;
}
-->
</style>
</head>

  </p>
<p align="center"><img border="0" src="img/logs2.jpg" width="867" height="178"></p>

<div align="center">

<table border="0" ">
  <table id="table3" border="0" background="img/meny.jpg" cellpadding="0" cellspacing="0" height="62" width="863" id="table1">
    <tr>
      <td align="center">
        <b>
        <font face="Arial, Helvetica, sans-serif">
               <a href="start.php"><font color="#FFFFFF">Start</font></a><font color="#FFFFFF">&nbsp;&nbsp;
		</font><a href="search.php"><font color="#FFFFFF">Sök</font></a><font color="#FFFFFF">&nbsp;&nbsp;
		</font><a href="50.php"><font color="#FFFFFF">50 Senaste</font></a><font color="#FFFFFF">&nbsp;&nbsp;
		</font><a href="Support.php"><font color="#FFFFFF">Support/Kontakta oss</font></a><font color="#FFFFFF">
		</font></font><font face="Arial, Helvetica, sans-serif" color="#FFFFFF">&nbsp;
		</font><a href="/blog/">
		<font face="Arial, Helvetica, sans-serif" color="#FFFFFF">Blog</font></a></b></td>
	  </tr>
  </table>
</div>
<html>
<body>
<div align="center">
<table border="0" ">
  <table id="table3" border="0" background="img/main.jpg" cellpadding="0" cellspacing="0" height="411" width="863">
	<tr><td align="center"><p><b><font size="5">Välkommen till LiveMMS.nu</font></b></p>
		<p>För att ladda up en mms bild till våran server, så skapar du ett 
		vanligt MMS skickar detta till <br>
		nr <b>72550</b> med texten &quot;<b>mmslive</b>&quot; utan <b>&quot;&quot;</b><br><br>
		Tjänsten kostar 5:- plus eventuell operatörsavgift. <br>Bilden kommer 
		att visas inom 30 sekunder, <br>och kommer finnas på våran webserver i 30 
		dagar så att du kan visa den för dina vänner
		<br>
		<br>
		Om du glömt av ID nummret på din bild kan du klicka på "<b>sök</b>" i menyn för att söka reda på dina bilder.
		<br>Klickar du på &quot;<b>50 senaste</b>&quot; så visas dom 50 senaste inskickade bilderna.
		<br> har du problem eller vill kontakta oss klicka på "<b>support/kontakta oss</b>" i menyn</p>
		<p><b>OBS</b>: Eftersom sidan är ny kan buggar förekomma, har du probem 
		eller ser något fel, <font face="Arial, Helvetica, sans-serif" size="2">
		Vänligen<b> <a href="Support.php">Kontakta oss</a></b></font></p>
	</tr>
</table>
</div>
</body></html>
              
<p align="center"><img border="0" src="img/senaste.jpg" width="864" height="62"></p>
<p align="center">
<?
// Definiera konstanter för databasanslutning
$MYSQL_HOST = 'test';
$MYSQL_USER = 'test';
$MYSQL_PASSWORD = 'test';
$MYSQL_DATABASE = 'test';

// Anslut till databasen
mysql_connect($MYSQL_HOST, $MYSQL_USER, $MYSQL_PASSWORD);
mysql_select_db($MYSQL_DATABASE);

// Plocka ut 7 senaste MMS
$res = mysql_query('SELECT *,unix_timestamp(tstamp) as utstamp FROM mms
    ORDER BY tstamp DESC LIMIT 6');

echo "<table cellspacing=\"3\" cellpadding=\"1\" border=\"2\"><tr>";

while ($row = mysql_fetch_assoc($res)) {

    echo "<td>";
    $row['message'] = substr($row['message'],strpos($row['message'],' '));

    if ( file_exists('data/' . $row['id'] . '.jpeg') ) {
        $row['picture'] = 'data/' . $row['id'] . '.jpeg';
    } else $row['picture'] = '';

    if ( $row['picture'] != '' ) {
        echo '<a href="visabild.php?id=' . $row['id'] . '">';
        echo '<img width="125" src="' . $row['picture'] . '"></a>';
    }
    
    echo "</td>";
}
    echo "</tr></table>";
?>
</p>

<div align="center">

<table border="0" ">
  <table id="table3" border="0" background="img/meny.jpg" cellpadding="0" cellspacing="0" height="62" width="863" id="table2">
    <tr>
      <td align="center">
        <b><font size="2" color="#FFFFFF">&nbsp;&nbsp;&nbsp; Copyright © 2007 
		<br>&nbsp;&nbsp;&nbsp; Beta 1.0 | <?php

$mtime = explode(' ', microtime());
$totaltime = $mtime[0] + $mtime[1] - $starttime;
printf('Page loaded in %.3f seconds.', $totaltime);

?></font></b></td>
	  </tr>
  </table>
</div>
 
Hi

For the beginning, correct the invalid markup :
[ul]
[li]meaningless double quote ( " )[/li]
[li]content in the [tt]table[/tt] other then permitted[/li]
[/ul]
Code:
<table border="0" ">
  <table id="table3" border="0" background="img/meny.jpg" cellpadding="0" cellspacing="0" height="62" width="863" id="table1">
And other errors, if you find more.

Feherke.
 
ow lol thanks :) didint se that at all... im BLIND :(
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top