Avatar billede orkiderejser Novice
11. august 2009 - 07:52 Der er 1 kommentar og
1 løsning

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
Avatar billede orkiderejser Novice
07. september 2009 - 09:27 #1
Der skulle vel ikke være en, der med sin store vid vidste hvilken kategori, jeg skulle lægge dette problem.

Mvh
Jan
Avatar billede orkiderejser Novice
06. oktober 2009 - 08:12 #2
Det må være en svær en

Mvh
Jan
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Computerworld tilbyder specialiserede kurser i database-management

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester