poster vises ikke helt før en opdatering med F5
Spørgsmålet flyttet fra PHP.http://www.orkiderejser.dk/hotel/kohsamuihotel.php
Koden er:
<?php do { ?>
<div class="hotelramme">
<div class="hoteloverskrift"><?php echo $row_Recordset1['hotelnavn']; ?></div>
<div class="topvtekst">
<img src="../img/<?php echo $row_Recordset1['kategori']; ?>" alt="<?php echo $row_Recordset1['alt']; ?>" width="11" height="11" />
<img src="../img/<?php echo $row_Recordset1['kategori2']; ?>" alt="<?php echo $row_Recordset1['alt2']; ?>" width="11" height="11" />
<img src="../img/<?php echo $row_Recordset1['kategori3']; ?>" alt="<?php echo $row_Recordset1['alt3']; ?>" width="11" height="11" />
<img src="../img/<?php echo $row_Recordset1['kategori4']; ?>" alt="<?php echo $row_Recordset1['alt4']; ?>" width="11" height="11" />
<img src="../img/<?php echo $row_Recordset1['kategori5']; ?>" alt="<?php echo $row_Recordset1['alt5']; ?>" width="11" height="11" /> </div>
<div class="topvtekst">
<div class="topvtekst"><?php echo $row_Recordset1['hotelnavn']; ?><br />
<?php echo $row_Recordset1['adresse']; ?>
</div>
<div class="topvtekst"><?php echo $row_Recordset1['beskrivelse']; ?></div>
</div>
<div class="topbilledehotel">
<div class="topbilledehotel"><img src="../img/<?php echo $row_Recordset1['billede1']; ?>" alt="<?php echo $row_Recordset1['altbillede1']; ?>" border="0" align="right" /></div>
<div class="topbilledehotel"><img src="../img/<?php echo $row_Recordset1['billede2']; ?>" alt="<?php echo $row_Recordset1['altbillede2']; ?>" border="0" align="right" /></div>
<div class="topbilledehotel"><img src="../img/<?php echo $row_Recordset1['billede3']; ?>" alt="<?php echo $row_Recordset1['altbillede3']; ?>" border="0" align="right" /></div>
</div>
<div class="undertekst"><?php echo $row_Recordset1['pris']; ?></div>
</div>
<?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
<?
virtual('/connections/orkiderejserdb.php');
?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
mysql_select_db($database_orkiderejserdb, $orkiderejserdb);
$query_Recordset1 = "SELECT * FROM hotel WHERE stednavn = 'Koh Samui' and CURDATE()<`udloeb` ORDER BY udloeb DESC";
$Recordset1 = mysql_query($query_Recordset1, $orkiderejserdb) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
?>
Mvh
Jan