I have an index page with a lot of included files for news and headlines in different catgories. The page is here:
<http://djurslands.net/mor/testground/nyhedsportal/test3.php>
WARNING: It's slooooooooooow!
The problem is only visible in IE for Mac (tested with 5.1 for 9.x and whatever newest version available for OS X), page displays fine in NS 7, Opera 6 and Safari for Mac, and also in IE 6 and Opera 7 for Win.
In IE for Mac I get at lot of space at the end of each headline category. Viewing the source code from a browser reveils that the scripts generates empty tables - more headlines also generates more empty tables. The example code pasted below is the script that generates the uppermost headline category ("L�serbreve") in the left column.
I have no idea if there are more bugs in this, but since we're probably going to move to another system soon, my main goal, for now, is to weed out all those empty tables.
TIA Tina
<table border="0" cellpadding="0" cellspacing="0" width="160" >
<tr>
<td >
<div class=venstreoverskrift>
<center>
Læserbreve
</center>
</div>
</td>
</tr>
<tr>
<td >
<?
// open database connection $connection = mysql_connect($host, $user, $pass) or die ("Unable to connect!");
// select database
mysql_select_db($db) or die ("Unable to select database!");$uoensket = "er";
// generate and execute query
// generer og udf�r kommando
$query = "SELECT id, overskrift, indhold, topindhold, kilde, emne, kontakt, omraade, bremse, tid FROM djurs_nyheder where bremse < '%$uoensket%' and emne = 'brev' ORDER BY tid DESC";
$result = mysql_query($query) or die ("Fejl: $query. " . mysql_error());
// if records present
if (mysql_num_rows($result) > 0)
{
// iterate through resultset
// print article titles
while($row = mysql_fetch_object($result))
{
include("navnefunktioner.php");
$dagstid = substr($row->tid, 0, 8);
//---------------------------------------------------
$rova = $dagstid;if (substr($rova, 4, 2) == "06" and substr($rova, 6, 2) == "30") $dagstid = "20030700" ;
if (substr($rova, 4, 2) == '06' and substr($rova, 6, 2) == '29') $dagstid = '20030699' ;
if (substr($rova, 4, 2) == '06' and substr($rova, 6, 2) == '28') $dagstid = '20030698' ;
if (substr($rova, 4, 2) == '06' and substr($rova, 6, 2) == '27') $dagstid = '20030697' ;
if (substr($rova, 4, 2) == '06' and substr($rova, 6, 2) == '26') $dagstid = '20030696' ;
if (substr($rova, 4, 2) == '06' and substr($rova, 6, 2) == '25') $dagstid = '20030695' ;
if (substr($rova, 4, 2) == '06' and substr($rova, 6, 2) == '24') $dagstid = '20030694' ;
if (substr($rova, 4, 2) == '06' and substr($rova, 6, 2) == '23') $dagstid = '20030693' ;
//---------------------------------------------------
?>
<table width="160" border="0" cellpadding="2" cellspacing="0" bordercolor="#CCCCCC">
<tr>
<? if ($dagstid > ($nutid - 8)) {;
echo "<td> ";�
echo "" ;
echo "<b><a href=01-enkeltnyhed2.php?id=".$row->id . ">". $row->overskrift . "</a></b></td>";
��
}
else {;
} ?> � </tr> </table> <? } } // if no records present // display message else { ?> Ingen meddelelser tilg�ngelige i �jeblikket <? }
// close database connection
mysql_close($connection);
?>
</td>
</tr>
</table>-- *^^*^^*^^*^^*^^*^^*^^*^^*^^*^^*^^*^^*^^*^^*^^*^^*^^*^^*^^* Tina Holm, Pederstrup Djurs, DK. http://www.nehaia.dk/ Why I need 26 hours a day these days: http://djurslands.net/org - 700 (and growing) user non-profit wireless broadband - PowerPoint Prensentation in english available *^^*^^*^^*^^*^^*^^*^^*^^*^^*^^*^^*^^*^^*^^*^^*^^*^^*^^*^^*
-- Mac Webmasters is sponsored by <http://lowendmac.com/> and...
Small Dog Electronics has Lasso, Filemaker, and FileMaker Server on Sale! High Technology for low prices. http://www.smalldog.com
Support Low End Mac <http://lowendmac.com/lists/support.html>
Mac Webmasters info: <http://lowendmac.com/lists/macweb.shtml> --> AOL users, remove "mailto:" Send list messages to: <mailto:[EMAIL PROTECTED]> To unsubscribe, email: <mailto:[EMAIL PROTECTED]> For digest mode, email: <mailto:[EMAIL PROTECTED]> Subscription questions: <mailto:[EMAIL PROTECTED]> List archive: <http://www.mail-archive.com/mac.webmasters%40mail.maclaunch.com/>
Using a Mac? Free email & more at Applelinks! http://www.applelinks.com
