daily pastebin goal
88%
SHARE
TWEET

Untitled

a guest Jan 22nd, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. // Forbind til vores database
  3. include('db.php');
  4.  
  5.  
  6. // Start vores side.
  7. $aktiv_menu = 'kunder';
  8. include('templates/side_start.php');
  9.  
  10. $resultat = $db->query("SELECT * FROM kunder WHERE id = '".$_GET['kundeid']."'");
  11.  
  12. if ($kunde = $resultat->fetch_array() ) {
  13.     $kundeid = $kunde['ID'];
  14.     echo "<table border='1'>";
  15.    
  16.     // Firmanavn
  17.     echo "<tr>";
  18.     echo "<td class='tabel-label'>Firmanavn</td>";
  19.     echo "<td class='tabel-felt'>" . $kunde['firmanavn'] . "</td>";
  20.     echo "</tr>";
  21.    
  22.     // Adresse
  23.     echo "<tr>";
  24.     echo "<td class='tabel-label'>Adresse</td>";
  25.     echo "<td class='tabel-felt'>" . $kunde['adresse'] . "</td>";
  26.     echo "</tr>";
  27.    
  28.     // Postnummer
  29.     echo "<tr>";
  30.     echo "<td class='tabel-label'>Postnummer</td>";
  31.     echo "<td class='tabel-felt'>" . $kunde['postnr'] . "</td>";
  32.     echo "</tr>";
  33.    
  34.     // By
  35.     echo "<tr>";
  36.     echo "<td class='tabel-label'>By</td>";
  37.     echo "<td class='tabel-felt'>" . $kunde['bynavn'] . "</td>";
  38.     echo "</tr>";
  39.    
  40.     // Land
  41.     echo "<tr>";
  42.     echo "<td class='tabel-label'>Land</td>";
  43.     echo "<td class='tabel-felt'>" . $kunde['land'] . "</td>";
  44.     echo "</tr>";
  45.    
  46.     // Email
  47.     echo "<tr>";
  48.     echo "<td class='tabel-label'>E-mail</td>";
  49.     echo "<td class='tabel-felt'><a href='mailto:" . $kunde['email'] . "'>" . $kunde['email'] . "</a></td>";
  50.     echo "</tr>";
  51.    
  52.     // Telefon
  53.     echo "<tr>";
  54.     echo "<td class='tabel-label'>Telefon</td>";
  55.     echo "<td class='tabel-felt'>" . $kunde['tlf'] . "</td>";
  56.     echo "</tr>";
  57.  
  58.     echo "</table>";
  59.    
  60.     echo "<hr><a href='retkunde.php?kundeid=$kundeid'>Ret oplysninger</a>";
  61.    
  62. } else {
  63.     echo "Kunde ikke fundet.";
  64. }
  65.  
  66.  
  67. // Slut på vores side.
  68. include('templates/side_slut.php');
  69. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top