Avatar billede hyggelig75 Juniormester
10. juli 2019 - 16:01 Der er 5 kommentarer

hvordan får jeg dette billede til at blive gemt i folder /stambog/

<?php


$hvalpe_data['Kennel'];
$hvalpe_data['navn1'];
$hvalpe_data['firstname'] . ' ' . $hvalpe_data['lastname'];
$hvalpe_data['adresse'];
$hvalpe_data['post'];
$hvalpe_data['Race'];
$hvalpe_data['kon'];
$hvalpe_data['born'];
$hvalpe_data['hvalp_farve'];
$hvalpe_data['Chipnummer'];
$hvalpe_data['stamnummer'];
$hvalpe_data['dato1'];
$hvalpe_data['note'];

$far_data['navn'];
$far_data['stamnummer'];
$far_data['farve'];

$mor_data['navn'];
$mor_data['stamnummer'];
$mor_data['farve'];

$far_data['bedstefar'];
$far_data['bedstefar_stamnummer'];
$far_data['bedstefar_farve'];
   
$far_data['bedstemor'];
$far_data['bedstemor_stamnummer'];
$far_data['bedstemor_farve'];

$mor_data['bedstefar1'];
$mor_data['bedstefar1_stamnummer'];
$mor_data['bedstefar1_farve'];
   
$mor_data['bedstemor1'];
$mor_data['bedstemor1_stamnummer'];
$mor_data['bedstemor1_farve'];

$far_data['oldefar'];
$far_data['oldefar_stamnummer'];
$far_data['oldefar_farve'];
           
$far_data['oldemor'];
$far_data['oldemor_stamnummer'];
$far_data['oldemor_farve'];
           
$far_data['oldefar1'];
$far_data['oldefar1_stamnummer'];
$far_data['oldefar1_farve'];
           
$far_data['oldemor1'];
$far_data['oldemor1_stamnummer'];
$far_data['oldemor1_farve'];

$mor_data['oldefar1'];
$mor_data['oldefar1_stamnummer'];
$mor_data['oldefar1_farve'];
       
$mor_data['oldemor1'];
$mor_data['oldemor1_stamnummer'];
$mor_data['oldemor1_farve'];
       
$mor_data['oldefar2'];
$mor_data['oldefar2_stamnummer'];
$mor_data['oldefar2_farve'];
       
$mor_data['oldemor2'];
$mor_data['oldemor2_stamnummer'];
$mor_data['oldemor2_farve'];

           

$image = imagecreatefrompng('https://dhlhunderegister.dk/admin/stambog/stamtavle.png');
imagealphablending($image, true);

$black    = imagecolorallocate($image, 150,0, 0);

// imagefttext("Image", "Font Size", "Rotate Text", "Left Position", "Top Position", "Font Color", "Font Name", "Text To Print");


imagefttext($image, 40, 0, 2075, 335, $$black, 'verdana.ttf', $hvalpe_data['Chipnummer']);
imagefttext($image, 60, 0, 2935, 270, $$black, 'verdana.ttf', $hvalpe_data['stamnummer']);   
imagefttext($image, 40, 0, 255, 2325, $$black, 'verdana.ttf', $hvalpe_data['dato1']);
imagefttext($image, 40, 0, 250, 2190, $$black, 'verdana.ttf', $hvalpe_data['note']);

imagefttext($image, 40, 0, 850, 390, $$black, 'verdana.ttf', $hvalpe_data['Kennel']);
imagefttext($image, 40, 0, 850, 440, $$black, 'verdana.ttf', $hvalpe_data['firstname'] . ' ' . $hvalpe_data['lastname']);   
imagefttext($image, 40, 0, 850, 490, $$black, 'verdana.ttf', $hvalpe_data['adresse']);
imagefttext($image, 40, 0, 850, 540, $$black, 'verdana.ttf', $hvalpe_data['post']);
   
imagefttext($image, 60, 0, 660, 270, $$black, 'verdana.ttf', $hvalpe_data['navn1']);   
imagefttext($image, 30, 0, 2010, 390, $$black, 'verdana.ttf', $hvalpe_data['Race']);
imagefttext($image, 30, 0, 2000, 445, $$black, 'verdana.ttf', $hvalpe_data['kon']);
imagefttext($image, 30, 0, 2005, 500, $$black, 'verdana.ttf', $hvalpe_data['born']);
imagefttext($image, 30, 0, 2230, 555, $$black, 'verdana.ttf', $hvalpe_data['hvalp_farve']);

imagefttext($image, 40, 0, 200, 890, $$black, 'verdana.ttf', $far_data['navn']);
imagefttext($image, 40, 0, 200, 945, $$black, 'verdana.ttf', $far_data['stamnummer']);
imagefttext($image, 40, 0, 200, 1000, $$black, 'verdana.ttf', $far_data['farve']);

imagefttext($image, 40, 0, 200, 1390, $$black, 'verdana.ttf', $mor_data['navn']);
imagefttext($image, 40, 0, 200, 1445, $$black, 'verdana.ttf', $mor_data['stamnummer']);
imagefttext($image, 40, 0, 200, 1500, $$black, 'verdana.ttf', $mor_data['farve']);

imagefttext($image, 40, 0, 1200, 770, $$black, 'verdana.ttf', $far_data['bedstefar']);
imagefttext($image, 40, 0, 1200, 815, $$black, 'verdana.ttf', $far_data['bedstefar_stamnummer']);
imagefttext($image, 40, 0, 1200, 870, $$black, 'verdana.ttf', $far_data['bedstefar_farve']);
imagefttext($image, 40, 0, 1200, 1030, $$black, 'verdana.ttf', $far_data['bedstemor']);
imagefttext($image, 40, 0, 1200, 1075, $$black, 'verdana.ttf', $far_data['bedstemor_stamnummer']);
imagefttext($image, 40, 0, 1200, 1120, $$black, 'verdana.ttf', $far_data['bedstemor_farve']);


imagefttext($image, 40, 0, 1200, 1295, $$black, 'verdana.ttf', $mor_data['bedstefar1']);
imagefttext($image, 40, 0, 1200, 1345, $$black, 'verdana.ttf', $mor_data['bedstefar1_stamnummer']);
imagefttext($image, 40, 0, 1200, 1390, $$black, 'verdana.ttf', $mor_data['bedstefar1_farve']);
imagefttext($image, 40, 0, 1200, 1555, $$black, 'verdana.ttf', $mor_data['bedstemor1']);
imagefttext($image, 40, 0, 1200, 1605, $$black, 'verdana.ttf', $mor_data['bedstemor1_stamnummer']);
imagefttext($image, 40, 0, 1200, 1650, $$black, 'verdana.ttf', $mor_data['bedstemor1_farve']);

imagefttext($image, 40, 0, 2100, 985, $$black, 'verdana.ttf', $far_data['oldefar']);
imagefttext($image, 40, 0, 2100, 1030, $$black, 'verdana.ttf', $far_data['oldefar_stamnummer']);
imagefttext($image, 40, 0, 2800, 1030, $$black, 'verdana.ttf', $far_data['oldefar_farve']);
imagefttext($image, 40, 0, 2100, 1120, $$black, 'verdana.ttf', $far_data['oldemor']);
imagefttext($image, 40, 0, 2100, 1165, $$black, 'verdana.ttf', $far_data['oldemor_stamnummer']);
imagefttext($image, 40, 0, 2800, 1165, $$black, 'verdana.ttf', $far_data['oldemor_farve']);

imagefttext($image, 40, 0, 2100, 730, $$black, 'verdana.ttf', $far_data['oldefar1']);
imagefttext($image, 40, 0, 2100, 775, $$black, 'verdana.ttf', $far_data['oldefar1_stamnummer']);
imagefttext($image, 40, 0, 2800, 775, $$black, 'verdana.ttf', $far_data['oldefar1_farve']);
imagefttext($image, 40, 0, 2100, 855, $$black, 'verdana.ttf', $far_data['oldemor1']);
imagefttext($image, 40, 0, 2100, 905, $$black, 'verdana.ttf', $far_data['oldemor1_stamnummer']);
imagefttext($image, 40, 0, 2800, 905, $$black, 'verdana.ttf', $far_data['oldemor1_farve']);

imagefttext($image, 40, 0, 2100, 1250, $$black, 'verdana.ttf', $mor_data['oldefar1']);
imagefttext($image, 40, 0, 2100, 1300, $$black, 'verdana.ttf',$mor_data['oldefar1_stamnummer']);
imagefttext($image, 40, 0, 2800, 1300, $$black, 'verdana.ttf',$mor_data['oldefar1_farve']);
imagefttext($image, 40, 0, 2100, 1380, $$black, 'verdana.ttf', $mor_data['oldemor1']);
imagefttext($image, 40, 0, 2100, 1425, $$black, 'verdana.ttf', $mor_data['oldemor1_stamnummer']);
imagefttext($image, 40, 0, 2800, 1425, $$black, 'verdana.ttf', $mor_dataa['oldemor1_farve']);

imagefttext($image, 40, 0, 2100, 1510, $$black, 'verdana.ttf', $mor_data['oldefar2']);
imagefttext($image, 40, 0, 2100, 1555, $$black, 'verdana.ttf', $mor_data['oldefar2_stamnummer']);
imagefttext($image, 40, 0, 2800, 1555, $$black, 'verdana.ttf', $mor_data['oldefar2_farve']);
imagefttext($image, 40, 0, 2100, 1640, $$black, 'verdana.ttf', $mor_data['oldemor2']);
imagefttext($image, 40, 0, 2100, 1690, $$black, 'verdana.ttf', $mor_data['oldemor2_stamnummer']);
imagefttext($image, 40, 0, 2800, 1690, $$black, 'verdana.ttf', $mor_data['oldemor2_farve']);




/* If you want to display the file in browser */

/*
    header('Content-type: image/png');
    ImagePng($image);
    imagedestroy($image);
*/

/* if you want to save the file in the web server */

/*
$filename         = 'stamtavle1.png';
ImagePng($image, $filename);
imagedestroy($image);
*/

/* If you wnat the user to save the file */

/*
$filename         = 'stamtavle1.png';
ImagePng($image,$filename);

header('Pragma: public');
header('Cache-Control: public, no-cache');
header('Content-Type: application/octet-stream');
header('Content-Length: ' . filesize($filename));
header('Content-Disposition: attachment; filename="' . basename($filename) . '"');
header('Content-Transfer-Encoding: binary');
readfile($filename);

imagedestroy($image);

*/



$filename = $hvalpe_data['Chipnummer'] . '.png';
ImagePng($image, $filename);
imagedestroy($image);



?>
Avatar billede Slater Ekspert
10. juli 2019 - 16:18 #1
Der hvor du sætter dit $filename skriver du bare "stambog/" foran.
Altså f.eks. i stedet for
$filename = 'stamtavle1.png';

$filename = 'stambog/stamtavle1.png';

That's it.
Avatar billede hyggelig75 Juniormester
10. juli 2019 - 16:20 #2
Der hvor du sætter dit $filename skriver du bare "stambog/" foran.
Altså f.eks. i stedet for
$filename = 'stamtavle1.png';

$filename = 'stambog/stamtavle1.png';

That's it.
det er forsøgt og det virker ikke
Avatar billede Slater Ekspert
10. juli 2019 - 17:10 #3
Så må du beskrive lidt bedre hvad der sker og hvad du forventer.

Bliver filen gemt et andet sted? Findes den mappe? Får du nogen fejl? Er du sikker på det er det korrekte billede?
Avatar billede hyggelig75 Juniormester
10. juli 2019 - 17:15 #4
Slater billedet bliver gemt i /public_html/ men jeg vil have den til at gemme i  /stambog/
men da den bruger chipnummer fra sql kan ejg ike finde ud af at ændre $filename = $hvalpe_data['Chipnummer'] . '.png'; så den gemmer i  /stambog/
Avatar billede hyggelig75 Juniormester
10. juli 2019 - 18:39 #5
her er hele scriptet :
<html lang="en">
<?php

// Initialize the session
session_start();

// Check if the user is logged in, if not then redirect him to login page
if(!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"] !== true){
    header("location: login.php");
    exit;
}

include_once 'config.php';
$hvalpe_id = $_GET['id'];
   
// Henter Hvalpe data fra $_GET['id']
    $sql = "SELECT id, navn1, morther_id, born, kon, Chipnummer, stamnummer, dato1, note FROM `user_hvalpe` WHERE id = $hvalpe_id ";
    $result = mysqli_query($link, $sql);
    $resultCheck = mysqli_num_rows($result);
 
    $row = mysqli_fetch_assoc($result);

    $hvalpe_data = array("navn1"=>"$row[navn1]", "kon"=>"$row[kon]", "born"=>"$row[born]","morther_id"=>"$row[morther_id]","Chipnummer"=>"$row[Chipnummer]","stamnummer"=>"$row[stamnummer]","dato1"=>"$row[dato1]","note"=>"$row[note]");   
   
// Henter race fra morther_id
    $sql = "SELECT farve FROM `user_hvalpe` WHERE id = $hvalpe_id ";
    $result = mysqli_query($link, $sql);
    $resultCheck = mysqli_num_rows($result);
    $row = mysqli_fetch_assoc($result);   
    $hvalpe_data['hvalp_farve'] = $row['farve'];   
   
   
// Henter race fra morther_id
    $sql = "SELECT Race FROM user_doglist WHERE morther_id = $hvalpe_data[morther_id]";
    $result = mysqli_query($link, $sql);
    $resultCheck = mysqli_num_rows($result);
    $row = mysqli_fetch_assoc($result);   
    $hvalpe_data['Race'] = $row['Race'];
   
// Henter navn fra morther_id
    $sql = "SELECT navn FROM user_doglist WHERE morther_id = $hvalpe_data[morther_id]";
    $result = mysqli_query($link, $sql);
    $resultCheck = mysqli_num_rows($result);
    $row = mysqli_fetch_assoc($result);   
    $hvalpe_data['navn'] = $row['navn'];
   
// Henter stamnummer fra morther_id
    $sql = "SELECT stam FROM user_doglist WHERE morther_id = $hvalpe_data[morther_id]";
    $result = mysqli_query($link, $sql);
    $resultCheck = mysqli_num_rows($result);
    $row = mysqli_fetch_assoc($result);   
    $hvalpe_data['stam'] = $row['stam'];
   
// Henter farve fra morther_id
    $sql = "SELECT farve FROM user_doglist WHERE morther_id = $hvalpe_data[morther_id]";
    $result = mysqli_query($link, $sql);
    $resultCheck = mysqli_num_rows($result);
    $row = mysqli_fetch_assoc($result);   
    $hvalpe_data['farve'] = $row['farve'];

   
   
    $userid = $_SESSION['id'];   
// henter user email fra  $_SESSION['id']
    $userid = ((int)$_POST["userid"]);       
    $sql = "SELECT firstname FROM `users` WHERE id = $userid";
    $result = mysqli_query($link, $sql);
    $resultCheck = mysqli_num_rows($result);
    $row = mysqli_fetch_assoc($result);
    $hvalpe_data['firstname'] = $row['firstname'];
   
    $userid = ((int)$_POST["userid"]);
    $sql = "SELECT lastname FROM `users` WHERE id = $userid ";
    $result = mysqli_query($link, $sql);
    $resultCheck = mysqli_num_rows($result);
    $row = mysqli_fetch_assoc($result);
    $hvalpe_data['lastname'] = $row['lastname'];
   
    $userid = ((int)$_POST["userid"]);
    $sql = "SELECT adresse FROM `users` WHERE id = $userid";
    $result = mysqli_query($link, $sql);
    $resultCheck = mysqli_num_rows($result);
    $row = mysqli_fetch_assoc($result);
    $hvalpe_data['adresse'] = $row['adresse'];
   
    $userid = ((int)$_POST["userid"]);
    $sql = "SELECT post FROM `users` WHERE id = $userid ";
    $result = mysqli_query($link, $sql);
    $resultCheck = mysqli_num_rows($result);
    $row = mysqli_fetch_assoc($result);
    $hvalpe_data['post'] = $row['post'];
   
    $userid = ((int)$_POST["userid"]);
    $sql = "SELECT Kennel FROM `users` WHERE id = $userid";
    $result = mysqli_query($link, $sql);
    $resultCheck = mysqli_num_rows($result);
    $row = mysqli_fetch_assoc($result);
    $hvalpe_data['Kennel'] = $row['Kennel'];

   
//-----------------------------------------------------------------


?>


<head>
<style> 
  .image
  {
  position: relative;
  width: 180px;
  height: auto;
}

h2 {
  position: absolute;
  top: 45px;
  left: 230;
  width: 450px;
}
h2 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
h4 {
  position: absolute;
  top: 90px;
  left: 711;
  width: 450px;
}
h4 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
h1 {
    position: absolute;
  top: 45px;
  left: 1005;
  width: 450px;
  font-size: 150%;
}
h1 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text1 {
    position: absolute;
  top: 175px;
  left: 765;
  width: 450px;
}
text1 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text2 {
    position: absolute;
  top: -210px;
  left: -1230px;
  width: 450px;
}
text2 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text3 {
    position: absolute;
  top: 230px;
  left: 1230px;
  width: 450px;
}
text3 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text4 {
    position: absolute;
  top: 250px;
  left: 1230px;
  width: 450px;
}
text4 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text5 {
    position: absolute;
  top: 187px;
  left: 1620px;
  width: 450px;
}
text5 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text6 {
    position: absolute;
  top: 207px;
  left: 1620px;
  width: 450px;
}
text6 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text7 {
    position: absolute;
  top: 225px;
  left: 1620px;
  width: 450px;
}
text7 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text8 {
    position: absolute;
  top: 540px;
  left: 1020px;
  width: 450px;
}
text8 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text9 {
    position: absolute;
  top: 560px;
  left: 1020px;
  width: 450px;
}
text9 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text10 {
    position: absolute;
  top: 580px;
  left: 1020px;
  width: 450px;
}
text10 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text11 {
    position: absolute;
  top: 360px;
  left: 1020px;
  width: 450px;
}
text11 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text12 {
    position: absolute;
  top: 380px;
  left: 1020px;
  width: 450px;
}
text12 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text13 {
    position: absolute;
  top: 400px;
  left: 1020px;
  width: 450px;
}
text13 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text14 {
    position: absolute;
  top: 495px;
  left: 1360px;
  width: 450px;
}
text14 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text15 {
    position: absolute;
  top: 510px;
  left: 1360px;
  width: 450px;
}
text15 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text16 {
    position: absolute;
  top: 525px;
  left: 1360px;
  width: 450px;
}
text16 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text17 {
    position: absolute;
  top: 580px;
  left: 1360px;
  width: 450px;
}
text17 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text18 {
    position: absolute;
  top: 595px;
  left: 1360px;
  width: 450px;
}
text18 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text19 {
    position: absolute;
  top: 610px;
  left: 1360px;
  width: 450px;
}
text19 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text20 {
    position: absolute;
  top: 320px;
  left: 1360px;
  width: 450px;
}
text20 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text21 {
    position: absolute;
  top: 335px;
  left: 1360px;
  width: 450px;
}
text21 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text22 {
    position: absolute;
  top: 350px;
  left: 1360px;
  width: 450px;
}
text22 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text23 {
    position: absolute;
  top: 410px;
  left: 1360px;
  width: 450px;
}
text23 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text24 {
    position: absolute;
  top: 425px;
  left: 1360px;
  width: 450;
}
text24 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text25 {
    position: absolute;
  top: 440px;
  left: 1360px;
  width: 450px;
}
text25 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text26 {
    position: absolute;
  top: 300px;
  left: 1660px;
  width: 450px;
}
text26 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text27 {
    position: absolute;
  top: 315px;
  left: 1660px;
  width: 450px;
}
text27 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text28 {
    position: absolute;
  top: 315px;
  left: 1830px;
  width: 450px;
}
text28 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text29 {
    position: absolute;
  top: 345px;
  left: 1660px;
  width: 450px;
}
text29 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text30 {
    position: absolute;
  top: 365px;
  left: 1660px;
  width: 450px;
}
text30 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text31 {
    position: absolute;
  top: 365px;
  left: 1830px;
  width: 450px;
}
text31 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text32 {
    position: absolute;
  top: 390px;
  left: 1660px;
  width: 450px;
}
text32 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text33 {
    position: absolute;
  top: 405px;
  left: 1660px;
  width: 450px;
}
text33 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text34 {
    position: absolute;
  top: 405px;
  left: 1830px;
  width: 450px;
}
text34 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text35 {
    position: absolute;
  top: 435px;
  left: 1660px;
  width: 450px;
 
}
text35 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text36 {
    position: absolute;
  top: 450px;
  left: 1660px;
  width: 450px;
}
text36 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text37 {
    position: absolute;
  top: 450px;
  left: 1830px;
  width: 450px;
}
text37 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text38 {
    position: absolute;
  top: 480px;
  left: 1660px;
  width: 450px;
}
text38 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text39 {
    position: absolute;
  top: 495px;
  left: 1660px;
  width: 450px;
}
text39 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text40 {
    position: absolute;
  top: 495px;
  left: 1830px;
  width: 450px;
}
text40 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text41 {
    position: absolute;
  top: 525px;
  left: 1660px;
  width: 450px;
}
text41 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text42 {
    position: absolute;
  top: 540px;
  left: 1660px;
  width: 450px;
}
text42 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text43 {
    position: absolute;
  top: 540px;
  left: 1830px;
  width: 450px;
}
text43 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text44 {
    position: absolute;
  top: 570px;
  left: 1660px;
  width: 450px;
}
text44 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text45 {
    position: absolute;
  top: 585px;
  left: 1660px;
  width: 450px;
}
text45 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text46 {
    position: absolute;
  top: 585px;
  left: 1830px;
  width: 450px;
}
text46 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text47 {
    position: absolute;
  top: 615px;
  left: 1660px;
  width: 450px;
}
text47 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text48 {
    position: absolute;
  top: 630px;
  left: 1660px;
  width: 450px;
}
text48 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text49 {
    position: absolute;
  top: 630px;
  left: 1830px;
  width: 450px;
}
text49 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text50 {
    position: absolute;
  top: 848px;
  left: 1020px;
  width: 450px;
}
text50 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text51 {
    position: absolute;
  top: 802px;
  left: 1020px;
  width: 450px;
}
text51 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text52 {
    position: absolute;
  top: 100px;
  left: 200;
  width: 1050px;
}
text52 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text53 {
    position: absolute;
  top: 100px;
  left: 930px;
  width: 450px;
}
text53 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
text54 {
    position: absolute;
  top: 120px;
  left: 300;
  width: 450px;
}
text54 span {
  color: Black;
  font: bold 34px/45px Helvetica, Sans-Serif;
  letter-spacing: -1px; 
  background: rgb(0, 0, 0); /* fallback color */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}
</style>
</head>
<!DOCTYPE html>
<meta charset="UTF-8">
<html lang="en">
<head>
   
    <meta charset="UTF-8">
   
    <title>Welcome</title>
   
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.css">

    <meta name="viewport" content="width=device-width, initial-scale=1">
   
    <link rel="stylesheet" type="text/css" href="style/style.css">
   
</head>
<body>

   


</br>
   

    <?php include"assets/menu.php"; ?>



</br>
</br>
<div>
<form  method="post">
<text52><p>.Far id: <input type="text" name="love1_id" />.Mor id: <input type="text" name="love_id" />.Bruger id: <input type="text" name="userid" /></p></text52>
<text53><p><input type="submit" /></p></text53>

</form>
<?php
    $love1_id = ((int)$_POST["love1_id"]);
    $sql = "SELECT navn, stamnummer, farve, bedstefar, bedstefar_stamnummer, bedstefar_farve, bedstemor,bedstemor_stamnummer, bedstemor_farve, oldefar, oldefar_stamnummer, oldefar_farve, oldemor, oldemor_stamnummer, oldemor_farve, oldeoldefar, oldeoldefar_stamnummer, oldeoldefar_farve, oldeoldemor, oldeoldemor_stamnummer, oldeoldemor_farve FROM `doglist1` WHERE love1_id =$love1_id";
    $result = mysqli_query($link, $sql);
    $resultCheck = mysqli_num_rows($result);
    $row = mysqli_fetch_assoc($result);   
    $far_data = array("navn"=>"$row[navn]", "stamnummer"=>"$row[stamnummer]", "farve"=>"$row[farve]", "bedstefar"=>"$row[bedstefar]", "bedstefar_stamnummer"=>"$row[bedstefar_stamnummer]", "bedstefar_farve"=>"$row[bedstefar_farve]", "bedstemor"=>"$row[bedstemor]", "bedstemor_stamnummer"=>"$row[bedstemor_stamnummer]", "bedstemor_farve"=>"$row[bedstemor_farve]", "oldefar"=>"$row[oldefar]", "oldefar_stamnummer"=>"$row[oldefar_stamnummer]", "oldefar_farve"=>"$row[oldefar_farve]", "oldemor"=>"$row[oldemor]", "oldemor_stamnummer"=>"$row[oldemor_stamnummer]", "oldemor_farve"=>"$row[oldemor_farve]", "oldefar1"=>"$row[oldeoldefar]", "oldefar1_stamnummer"=>"$row[oldeoldefar_stamnummer]", "oldefar1_farve"=>"$row[oldeoldefar_farve]", "oldemor1"=>"$row[oldeoldemor]", "oldemor1_stamnummer"=>"$row[oldeoldemor_stamnummer]", "oldemor1_farve"=>"$row[oldeoldemor_farve]");
       
    ?>
</form>

<?php
    $love_id = ((int)$_POST["love_id"]);   
    $sql = "SELECT navn, stamnummer, farve, bedstefar, bedstefar_stamnummer, bedstefar_farve, bedstemor, bedstemor_stamnummer, bedstemor_farve, oldefar, oldefar_stamnummer, oldefar_farve, oldemor, oldemor_stamnummer, oldemor_farve, oldeoldefar, oldeoldefar_stamnummer, oldeoldefar_farve, oldeoldemor, oldeoldemor_stamnummer, oldeoldemor_farve FROM `doglist` WHERE love_id =$love_id";
    $result = mysqli_query($link, $sql);
    $resultCheck = mysqli_num_rows($result);
    $row = mysqli_fetch_assoc($result);   
    $mor_data = array("navn"=>"$row[navn]", "stamnummer"=>"$row[stamnummer]", "farve"=>"$row[farve]", "bedstefar1"=>"$row[bedstefar]", "bedstefar1_stamnummer"=>"$row[bedstefar_stamnummer]", "bedstefar1_farve"=>"$row[bedstefar_farve]", "bedstemor1"=>"$row[bedstemor]", "bedstemor1_stamnummer"=>"$row[bedstemor_stamnummer]", "bedstemor1_farve"=>"$row[bedstemor_farve]", "oldefar1"=>"$row[oldefar]", "oldefar1_stamnummer"=>"$row[oldefar_stamnummer]", "oldefar1_farve"=>"$row[oldefar_farve]", "oldemor1"=>"$row[oldemor]", "oldemor1_stamnummer"=>"$row[oldemor_stamnummer]", "oldemor1_farve"=>"$row[oldemor_farve]", "oldefar2"=>"$row[oldeoldefar]", "oldefar2_stamnummer"=>"$row[oldeoldefar_stamnummer]", "oldefar2_farve"=>"$row[oldeoldefar_farve]", "oldemor2"=>"$row[oldeoldemor]", "oldemor2_stamnummer"=>"$row[oldeoldemor_stamnummer]", "oldemor2_farve"=>"$row[oldeoldemor_farve]");
   
    ?>




<div class="image">
<img src="image/stamtavle.png" alt="" style=" width:1200;">


<h4><?=$hvalpe_data['Chipnummer'];?></h4>
<h1><?=$hvalpe_data['stamnummer'];?></h1>

    <h2><?=$hvalpe_data['navn1'];?></h2>
    <text54><?=$hvalpe_data['Kennel'];?></text54>
    <text1><?=$hvalpe_data['hvalp_farve'];?><text1>
    <text2><?=$hvalpe_data['firstname'] . ' ' . $hvalpe_data['lastname'];?><text2>
    <text3><?=$hvalpe_data['adresse'];?></text3>
    <text4><?=$hvalpe_data['post'];?></text4>
    <text5><?=$hvalpe_data['Race'];?></text5>
    <text6><?=$hvalpe_data['kon'];?></text6>
    <text7><?=$hvalpe_data['born'];?></text7>
   
    <text11><?=$far_data['navn'];?></text11>
    <text12><?=$far_data['stamnummer'];?></text12>
    <text13><?=$far_data['farve'];?></text13>
   
    <text20><?=$far_data['bedstefar'];?></text20>
    <text21><?=$far_data['bedstefar_stamnummer'];?></text21>
    <text22><?=$far_data['farve'];?></text22>
   
    <text23><?=$far_data['bedstemor'];?></text23>
    <text24><?=$far_data['bedstemor_stamnummer'];?></text24>
    <text25><?=$far_data['bedstemor_farve'];?></text25>
   
    <text32><?=$far_data['oldefar'];?></text32>
    <text33><?=$far_data['oldefar_stamnummer'];?></text33>
    <text34><?=$far_data['oldefar_farve'];?></text34>
   
    <text35><?=$far_data['oldemor'];?></text35>
    <text36><?=$far_data['oldemor_stamnummer'];?></text36>
    <text37><?=$far_data['oldemor_farve'];?></text37>
   
    <text26><?=$far_data['oldefar1'];?></text26>
    <text27><?=$far_data['oldefar1_stamnummer'];?></text27>
    <text28><?=$far_data['oldefar1_farve'];?></text28>
   
    <text29><?=$far_data['oldemor1'];?></text29>
    <text30><?=$far_data['oldemor1_stamnummer'];?></text30>
    <text31><?=$far_data['oldemor1_farve'];?></text31>
   
    <text8><?=$mor_data['navn'];?></text8>
    <text9><?=$mor_data['stamnummer'];?></text9>
    <text10><?=$mor_data['farve'];?></text10>
   
    <text14><?=$mor_data['bedstefar1'];?></text14>
    <text15><?=$mor_data['bedstefar1_stamnummer'];?></text15>
    <text16><?=$mor_data['bedstefar1_farve'];?></text16>
   
    <text17><?=$mor_data['bedstemor1'];?></text17>
    <text18><?=$mor_data['bedstemor1_stamnummer'];?></text18>
    <text19><?=$mor_data['bedstemor1_farve'];?></text19>
   
    <text38><?=$mor_data['oldefar1'];?></text38>
    <text39><?=$mor_data['oldefar1_stamnummer'];?></text39>
    <text40><?=$mor_data['oldefar1_farve'];?></text40>
   
    <text41><?=$mor_data['oldemor1'];?></text41>
    <text42><?=$mor_data['oldemor1_stamnummer'];?></text42>
    <text43><?=$mor_data['oldemor1_farve'];?></text43>
   
    <text44><?=$mor_data['oldefar2'];?></text44>
    <text45><?=$mor_data['oldefar2_stamnummer'];?></text45>
    <text46><?=$mor_data['oldefar2_farve'];?></text46>
   
    <text47><?=$mor_data['oldemor2'];?></text47>
    <text48><?=$mor_data['oldemor2_stamnummer'];?></text48>
    <text49><?=$mor_data['oldemor2_farve'];?></text49>
   
    <text50><?=$hvalpe_data['dato1'];?></text50>
    <text51><?=$hvalpe_data['note'];?></text51>
   
   
   
     
   
    </br> 
            <input type="hidden" name="Chipnummer"         value="<?=$hvalpe_data['Chipnummer'];?>">
            <input type="hidden" name="stamnummer"         value="<?=$hvalpe_data['stamnummer'];?>">
            <input type="hidden" name="dato1"         value="<?=$hvalpe_data['dato1'];?>">         
            <input type="hidden" name="note"         value="<?=$hvalpe_data['note'];?>">
   
            <input type="hidden" name="Kennel"         value="<?=$hvalpe_data['Kennel'];?>">
            <input type="hidden" name="navn1"         value="<?=$hvalpe_data['navn1'];?>">
            <input type="hidden" name="kon"         value="<?=$hvalpe_data['kon'];?>">         
            <input type="hidden" name="born"         value="<?=$hvalpe_data['born'];?>">
            <input type="hidden" name="Race"         value="<?=$hvalpe_data['Race'];?>">
           
            <input type="hidden" name="navn"         value="<?=$hvalpe_data['navn'];?>">
            <input type="hidden" name="stam"         value="<?=$hvalpe_data['stam'];?>">
            <input type="hidden" name="farve"         value="<?=$hvalpe_data['farve'];?>">
            <input type="hidden" name="farve"         value="<?=$hvalpe_data['hvalp_farve'];?>">
           
            <input type="hidden" name="firstname"     value="<?=$hvalpe_data['firstname'];?>">
            <input type="hidden" name="lastname"     value="<?=$hvalpe_data['lastname'];?>">
            <input type="hidden" name="adresse"     value="<?=$hvalpe_data['adresse'];?>">
            <input type="hidden" name="post"         value="<?=$hvalpe_data['post'];?>">
           
            <input type="hidden" name="far"        value="<?=$far_data['navn'];?>">
            <input type="hidden" name="far"         value="<?=$far_data['stamnummer'];?>">
            <input type="hidden" name="far"         value="<?=$far_data['farve'];?>">
           
            <input type="hidden" name="far"         value="<?=$far_data['bedstefar'];?>">
            <input type="hidden" name="far"         value="<?=$far_data['bedstefar_stamnummer'];?>">
            <input type="hidden" name="far"         value="<?=$far_data['bedstefar_farve'];?>">
           
            <input type="hidden" name="far"         value="<?=$far_data['bedstemor'];?>">
            <input type="hidden" name="far"         value="<?=$far_data['bedstemor_stamnummer'];?>">
            <input type="hidden" name="far"         value="<?=$far_data['bedstemor_farve'];?>">
           
            <input type="hidden" name="far"         value="<?=$far_data['oldefar'];?>">
            <input type="hidden" name="far"         value="<?=$far_data['oldefar_stamnummer'];?>">
            <input type="hidden" name="far"         value="<?=$far_data['oldefar_farve'];?>">
           
            <input type="hidden" name="far"         value="<?=$far_data['oldemor'];?>">
            <input type="hidden" name="far"         value="<?=$far_data['oldemor_stamnummer'];?>">
            <input type="hidden" name="far"         value="<?=$far_data['oldemor_farve'];?>">
           
            <input type="hidden" name="far"         value="<?=$far_data['oldefar1'];?>">
            <input type="hidden" name="far"         value="<?=$far_data['oldefar1_stamnummer'];?>">
            <input type="hidden" name="far"         value="<?=$far_data['oldefar1_farve'];?>">
           
            <input type="hidden" name="far"         value="<?=$far_data['oldemor1'];?>">
            <input type="hidden" name="far"         value="<?=$far_data['oldemor1_stamnummer'];?>">
            <input type="hidden" name="far"         value="<?=$far_data['oldemor1_farve'];?>">
           
            <input type="hidden" name="mor"         value="<?=$mor_data['navn'];?>">
            <input type="hidden" name="mor"         value="<?=$mor_data['stamnummer'];?>">
            <input type="hidden" name="mor"         value="<?=$mor_data['farve'];?>">
       
            <input type="hidden" name="mor"         value="<?=$mor_data['bedstefar1'];?>">
            <input type="hidden" name="mor"         value="<?=$mor_data['bedstefar1_stamnummer'];?>">
            <input type="hidden" name="mor"         value="<?=$mor_data['bedstefar1_farve'];?>">
       
            <input type="hidden" name="mor"         value="<?=$mor_data['bedstemor1'];?>">
            <input type="hidden" name="mor"         value="<?=$mor_data['bedstemor1_stamnummer'];?>">
            <input type="hidden" name="mor"         value="<?=$mor_data['bedstemor1_farve'];?>">
       
            <input type="hidden" name="mor"         value="<?=$mor_data['oldefar1'];?>">
            <input type="hidden" name="mor"         value="<?=$mor_data['oldefar1_stamnummer'];?>">
            <input type="hidden" name="mor"         value="<?=$mor_data['oldefar1_farve'];?>">
       
            <input type="hidden" name="mor"         value="<?=$mor_data['oldemor1'];?>">
            <input type="hidden" name="mor"         value="<?=$mor_data['oldemor1_stamnummer'];?>">
            <input type="hidden" name="mor"         value="<?=$mor_data['oldemor1_farve'];?>">
       
          <input type="hidden" name="mor"             value="<?=$mor_data['oldefar2'];?>">
          <input type="hidden" name="mor"             value="<?=$mor_data['oldefar2_stamnummer'];?>">
          <input type="hidden" name="mor"             value="<?=$mor_data['oldefar2_farve'];?>">
       
          <input type="hidden" name="mor"             value="<?=$mor_data['oldemor2'];?>">
          <input type="hidden" name="mor"             value="<?=$mor_data['oldemor2_stamnummer'];?>">
          <input type="hidden" name="mor"             value="<?=$mor_data['oldemor2_farve'];?>">
         
    </div>
</br>
</br>
</br>
</br>
<div class="footer">
<a href="mailto:hyggelig1975@gmail.com"> </p>
  <font color="white"><p>© Copyright 2019 , Design og udvikling .Kennel Taste of Heaven</p></font>
</div>


</body>
</html>
</body>
</html>


<?php


$hvalpe_data['Kennel'];
$hvalpe_data['navn1'];
$hvalpe_data['firstname'] . ' ' . $hvalpe_data['lastname'];
$hvalpe_data['adresse'];
$hvalpe_data['post'];
$hvalpe_data['Race'];
$hvalpe_data['kon'];
$hvalpe_data['born'];
$hvalpe_data['hvalp_farve'];
$hvalpe_data['Chipnummer'];
$hvalpe_data['stamnummer'];
$hvalpe_data['dato1'];
$hvalpe_data['note'];

$far_data['navn'];
$far_data['stamnummer'];
$far_data['farve'];

$mor_data['navn'];
$mor_data['stamnummer'];
$mor_data['farve'];

$far_data['bedstefar'];
$far_data['bedstefar_stamnummer'];
$far_data['bedstefar_farve'];
   
$far_data['bedstemor'];
$far_data['bedstemor_stamnummer'];
$far_data['bedstemor_farve'];

$mor_data['bedstefar1'];
$mor_data['bedstefar1_stamnummer'];
$mor_data['bedstefar1_farve'];
   
$mor_data['bedstemor1'];
$mor_data['bedstemor1_stamnummer'];
$mor_data['bedstemor1_farve'];

$far_data['oldefar'];
$far_data['oldefar_stamnummer'];
$far_data['oldefar_farve'];
           
$far_data['oldemor'];
$far_data['oldemor_stamnummer'];
$far_data['oldemor_farve'];
           
$far_data['oldefar1'];
$far_data['oldefar1_stamnummer'];
$far_data['oldefar1_farve'];
           
$far_data['oldemor1'];
$far_data['oldemor1_stamnummer'];
$far_data['oldemor1_farve'];

$mor_data['oldefar1'];
$mor_data['oldefar1_stamnummer'];
$mor_data['oldefar1_farve'];
       
$mor_data['oldemor1'];
$mor_data['oldemor1_stamnummer'];
$mor_data['oldemor1_farve'];
       
$mor_data['oldefar2'];
$mor_data['oldefar2_stamnummer'];
$mor_data['oldefar2_farve'];
       
$mor_data['oldemor2'];
$mor_data['oldemor2_stamnummer'];
$mor_data['oldemor2_farve'];

           

$image = imagecreatefrompng('https://dhlhunderegister.dk/admin/stambog/stamtavle.png');
imagealphablending($image, true);

$black    = imagecolorallocate($image, 150,0, 0);

// imagefttext("Image", "Font Size", "Rotate Text", "Left Position", "Top Position", "Font Color", "Font Name", "Text To Print");


imagefttext($image, 40, 0, 2075, 335, $$black, 'verdana.ttf', $hvalpe_data['Chipnummer']);
imagefttext($image, 60, 0, 2935, 270, $$black, 'verdana.ttf', $hvalpe_data['stamnummer']);   
imagefttext($image, 40, 0, 255, 2325, $$black, 'verdana.ttf', $hvalpe_data['dato1']);
imagefttext($image, 40, 0, 250, 2190, $$black, 'verdana.ttf', $hvalpe_data['note']);

imagefttext($image, 40, 0, 850, 390, $$black, 'verdana.ttf', $hvalpe_data['Kennel']);
imagefttext($image, 40, 0, 850, 440, $$black, 'verdana.ttf', $hvalpe_data['firstname'] . ' ' . $hvalpe_data['lastname']);   
imagefttext($image, 40, 0, 850, 490, $$black, 'verdana.ttf', $hvalpe_data['adresse']);
imagefttext($image, 40, 0, 850, 540, $$black, 'verdana.ttf', $hvalpe_data['post']);
   
imagefttext($image, 60, 0, 660, 270, $$black, 'verdana.ttf', $hvalpe_data['navn1']);   
imagefttext($image, 30, 0, 2010, 390, $$black, 'verdana.ttf', $hvalpe_data['Race']);
imagefttext($image, 30, 0, 2000, 445, $$black, 'verdana.ttf', $hvalpe_data['kon']);
imagefttext($image, 30, 0, 2005, 500, $$black, 'verdana.ttf', $hvalpe_data['born']);
imagefttext($image, 30, 0, 2230, 555, $$black, 'verdana.ttf', $hvalpe_data['hvalp_farve']);

imagefttext($image, 40, 0, 200, 890, $$black, 'verdana.ttf', $far_data['navn']);
imagefttext($image, 40, 0, 200, 945, $$black, 'verdana.ttf', $far_data['stamnummer']);
imagefttext($image, 40, 0, 200, 1000, $$black, 'verdana.ttf', $far_data['farve']);

imagefttext($image, 40, 0, 200, 1390, $$black, 'verdana.ttf', $mor_data['navn']);
imagefttext($image, 40, 0, 200, 1445, $$black, 'verdana.ttf', $mor_data['stamnummer']);
imagefttext($image, 40, 0, 200, 1500, $$black, 'verdana.ttf', $mor_data['farve']);

imagefttext($image, 40, 0, 1200, 770, $$black, 'verdana.ttf', $far_data['bedstefar']);
imagefttext($image, 40, 0, 1200, 815, $$black, 'verdana.ttf', $far_data['bedstefar_stamnummer']);
imagefttext($image, 40, 0, 1200, 870, $$black, 'verdana.ttf', $far_data['bedstefar_farve']);
imagefttext($image, 40, 0, 1200, 1030, $$black, 'verdana.ttf', $far_data['bedstemor']);
imagefttext($image, 40, 0, 1200, 1075, $$black, 'verdana.ttf', $far_data['bedstemor_stamnummer']);
imagefttext($image, 40, 0, 1200, 1120, $$black, 'verdana.ttf', $far_data['bedstemor_farve']);


imagefttext($image, 40, 0, 1200, 1295, $$black, 'verdana.ttf', $mor_data['bedstefar1']);
imagefttext($image, 40, 0, 1200, 1345, $$black, 'verdana.ttf', $mor_data['bedstefar1_stamnummer']);
imagefttext($image, 40, 0, 1200, 1390, $$black, 'verdana.ttf', $mor_data['bedstefar1_farve']);
imagefttext($image, 40, 0, 1200, 1555, $$black, 'verdana.ttf', $mor_data['bedstemor1']);
imagefttext($image, 40, 0, 1200, 1605, $$black, 'verdana.ttf', $mor_data['bedstemor1_stamnummer']);
imagefttext($image, 40, 0, 1200, 1650, $$black, 'verdana.ttf', $mor_data['bedstemor1_farve']);

imagefttext($image, 40, 0, 2100, 985, $$black, 'verdana.ttf', $far_data['oldefar']);
imagefttext($image, 40, 0, 2100, 1030, $$black, 'verdana.ttf', $far_data['oldefar_stamnummer']);
imagefttext($image, 40, 0, 2800, 1030, $$black, 'verdana.ttf', $far_data['oldefar_farve']);
imagefttext($image, 40, 0, 2100, 1120, $$black, 'verdana.ttf', $far_data['oldemor']);
imagefttext($image, 40, 0, 2100, 1165, $$black, 'verdana.ttf', $far_data['oldemor_stamnummer']);
imagefttext($image, 40, 0, 2800, 1165, $$black, 'verdana.ttf', $far_data['oldemor_farve']);

imagefttext($image, 40, 0, 2100, 730, $$black, 'verdana.ttf', $far_data['oldefar1']);
imagefttext($image, 40, 0, 2100, 775, $$black, 'verdana.ttf', $far_data['oldefar1_stamnummer']);
imagefttext($image, 40, 0, 2800, 775, $$black, 'verdana.ttf', $far_data['oldefar1_farve']);
imagefttext($image, 40, 0, 2100, 855, $$black, 'verdana.ttf', $far_data['oldemor1']);
imagefttext($image, 40, 0, 2100, 905, $$black, 'verdana.ttf', $far_data['oldemor1_stamnummer']);
imagefttext($image, 40, 0, 2800, 905, $$black, 'verdana.ttf', $far_data['oldemor1_farve']);

imagefttext($image, 40, 0, 2100, 1250, $$black, 'verdana.ttf', $mor_data['oldefar1']);
imagefttext($image, 40, 0, 2100, 1300, $$black, 'verdana.ttf',$mor_data['oldefar1_stamnummer']);
imagefttext($image, 40, 0, 2800, 1300, $$black, 'verdana.ttf',$mor_data['oldefar1_farve']);
imagefttext($image, 40, 0, 2100, 1380, $$black, 'verdana.ttf', $mor_data['oldemor1']);
imagefttext($image, 40, 0, 2100, 1425, $$black, 'verdana.ttf', $mor_data['oldemor1_stamnummer']);
imagefttext($image, 40, 0, 2800, 1425, $$black, 'verdana.ttf', $mor_dataa['oldemor1_farve']);

imagefttext($image, 40, 0, 2100, 1510, $$black, 'verdana.ttf', $mor_data['oldefar2']);
imagefttext($image, 40, 0, 2100, 1555, $$black, 'verdana.ttf', $mor_data['oldefar2_stamnummer']);
imagefttext($image, 40, 0, 2800, 1555, $$black, 'verdana.ttf', $mor_data['oldefar2_farve']);
imagefttext($image, 40, 0, 2100, 1640, $$black, 'verdana.ttf', $mor_data['oldemor2']);
imagefttext($image, 40, 0, 2100, 1690, $$black, 'verdana.ttf', $mor_data['oldemor2_stamnummer']);
imagefttext($image, 40, 0, 2800, 1690, $$black, 'verdana.ttf', $mor_data['oldemor2_farve']);




/* If you want to display the file in browser */

/*
    header('Content-type: image/png');
    ImagePng($image);
    imagedestroy($image);
*/

/* if you want to save the file in the web server */

/*
$filename         = stambog/'$hvalpe_data['Chipnummer'] . '.png'';
ImagePng($image, $filename);
imagedestroy($image);
*/

/* If you wnat the user to save the file */

/*
$filename         = $hvalpe_data['Chipnummer'] . '.png';
ImagePng($image,$filename);

header('Pragma: public');
header('Cache-Control: public, no-cache');
header('Content-Type: application/octet-stream');
header('Content-Length: ' . filesize($filename));
header('Content-Disposition: attachment; filename="' . basename($filename) . '"');
header('Content-Transfer-Encoding: binary');
readfile($filename);

imagedestroy($image);
*/




$filename = $hvalpe_data['Chipnummer'] . '.png';
ImagePng($image, $filename);
imagedestroy($image);



?>
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
Vi tilbyder markedets bedste kurser inden for webudvikling

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