Avatar billede scooterDK Nybegynder
14. november 2010 - 21:53 Der er 4 kommentarer og
1 løsning

You have an error in your SQL ....... use near '' at line 1

Hejsa
Jeg mente ellers at jeg var færdig med denne side, men kan ikke se hvor proplemet er, jeg får denne fejl :

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

Siden loader rigtig, men når man trukker på knappen opret kommer fjlen, har vedhæftet første del af siden, med PHP kode:

<?php
include_once("config.php");
checkLoggedIn("yes");
doCSS();
$dt=time();
if(isset($_REQUEST["type"]))          {    $type = $_REQUEST["type"];                }
if(isset($_REQUEST["hold"]))          {    $hold = $_REQUEST["hold"];                }
if(isset($_REQUEST["Hbever"]))        {    $Hbever = $_REQUEST["Hbever"];            }
if(isset($_REQUEST["Hulv"]))          {    $Hulv = $_REQUEST["Hulv"];                }
if(isset($_REQUEST["Hjunior"]))        {    $Hjunior = $_REQUEST["Hjunior"];          }
if(isset($_REQUEST["Hspejder"]))      {    $Hspejder = $_REQUEST["Hspejder"];        }
if(isset($_REQUEST["Hsenior"]))        {    $Hsenior = $_REQUEST["Hsenior"];          }
if(isset($_REQUEST["Hrover"]))        {    $Hrover = $_REQUEST["Hrover"];            }
if(isset($_REQUEST["Halle"]))          {    $Halle = $_REQUEST["Halle"];              }
$login_1=$_SESSION["login"];
$login_2=$_SESSION["password"];
$query = mysql_query("SELECT * FROM hold WHERE hold='$hold'") or die(mysql_error());
while ($row3 = mysql_fetch_array($query)) {$img_menu=$row3["im_1"]; $navn=$row3["navn"];}

if(isset($_POST['opret']))
{ if ($typ == "mode"){
if(isset($_REQUEST["dato_st"]))        {    $d = $_REQUEST["dato_st"];                }
if(isset($_REQUEST["ove"]))            {    $ove = $_REQUEST["ove"];                  }
if(isset($_REQUEST["notat_1"]))        {    $be1 = $_REQUEST["notat_1"];              }
if(isset($_REQUEST["notat_2"]))        {    $be2 = $_REQUEST["notat_2"];              }
if(isset($_REQUEST["leder"]))          {    $leder = $_REQUEST["leder"];              }
if(isset($_REQUEST["aktiv"]))          {    $akt = $_REQUEST["aktiv"];                }
if(isset($_REQUEST["sted"]))          {    $ste = $_REQUEST["sted"];                }
if(isset($_REQUEST["hyt"]))            {    $hyt = $_REQUEST["hyt"];                  }
if(isset($_REQUEST["sted_slut"]))      {    $sted_slut = $_REQUEST["sted_slut"];      }


$t1=strtotime($d);
$dato=date("Y-n-j",$t1);
$values = explode(";", $_REQUEST["leder"]);
$ledernav = $values[0];
$leder_id = $values[1];
// Bæver
if ($Hbever == "Ja"){
    $hol_bever = 'bever';
mysql_query("INSERT INTO arr (type, dato_st, overskrift, notat_1, notat_2, leder, leder_id, aktiv, hold, sted, sted_slut, hyt, login_bruger, d) VALUES ('$type','$dato','$ove','$be1','$be2','$ledernav','$leder_id','$akt','$hol_bever','$ste','$sted_slut','$hyt','$login_1','$dt')")
or die(mysql_error()); }
//Ulve
if ($Hulv == "Ja"){
    $hol_ulv = 'ulv';
mysql_query("INSERT INTO arr (type, dato_st, overskrift, notat_1, notat_2, leder, leder_id, aktiv, hold, sted, sted_slut, hyt, login_bruger, d) VALUES ('$type','$dato','$ove','$be1','$be2','$ledernav','$leder_id','$akt','$hol_ulv','$ste','$sted_slut','$hyt','$login_1','$dt')")
or die(mysql_error()); }
//Junior
if ($Hjunior == "Ja"){
    $hol_junior = 'junior';
mysql_query("INSERT INTO arr (type, dato_st, overskrift, notat_1, notat_2, leder, leder_id, aktiv, hold, sted, sted_slut, hyt, login_bruger, d) VALUES ('$type','$dato','$ove','$be1','$be2','$ledernav','$leder_id','$akt','$hol_junior','$ste','$sted_slut','$hyt','$login_1','$dt')")
or die(mysql_error()); }
//Spejder
if ($Hspejder == "Ja"){
    $hol_spejder = 'spejder';
mysql_query("INSERT INTO arr (type, dato_st, overskrift, notat_1, notat_2, leder, leder_id, aktiv, hold, sted, sted_slut, hyt, login_bruger, d) VALUES ('$type','$dato','$ove','$be1','$be2','$ledernav','$leder_id','$akt','$hol_spejder','$ste','$sted_slut','$hyt','$login_1','$dt')")
or die(mysql_error()); }
//Senior
if ($Hsenior == "Ja"){
    $hol_senior = 'senior';
mysql_query("INSERT INTO arr (type, dato_st, overskrift, notat_1, notat_2, leder, leder_id, aktiv, hold, sted, sted_slut, hyt, login_bruger, d) VALUES ('$type','$dato','$ove','$be1','$be2','$ledernav','$leder_id','$akt','$hol_senior','$ste','$sted_slut','$hyt','$login_1','$dt')")
or die(mysql_error()); }
//Rover
if ($Hrover == "Ja"){
    $hol_rover = 'rover';
mysql_query("INSERT INTO arr (type, dato_st, overskrift, notat_1, notat_2, leder, leder_id, aktiv, hold, sted, sted_slut, hyt, login_bruger, d) VALUES ('$type','$dato','$ove','$be1','$be2','$ledernav','$leder_id','$akt','$hol_rover','$ste','$sted_slut','$hyt','$login_1','$dt')")
or die(mysql_error()); }
//Alle hold
if ($Halle == "Ja"){
    $hol_alle = 'alle';
mysql_query("INSERT INTO arr (type, dato_st, overskrift, notat_1, notat_2, leder, leder_id, aktiv, hold, sted, sted_slut, hyt, login_bruger, d) VALUES ('$type','$dato','$ove','$be1','$be2','$ledernav','$leder_id','$akt','$hol_alle','$ste','$sted_slut','$hyt','$login_1','$dt')")
or die(mysql_error()); }

echo '<script>alert("Oprettelse af møde OK");top.location.replace("/rh.php?hold='.$hold.'")</script>';
} else {

if(isset($_REQUEST["tilmeld_id"])) {    $tilmeld_id = $_REQUEST["tilmeld_id"];  }
$q = mysql_query("SELECT * FROM tilmeld_pa WHERE id=$tilmeld_id") or die(mysql_error());
while ($row = mysql_fetch_array($q)) {

$tilmeld_pa = $row[filnavn];
$tilmeld_pa_be1 = $row[be1];
$tilmeld_pa_id = $row[id];

}
if(isset($_REQUEST["dato_st"]))          {    $d1 = $_REQUEST["dato_st"];                }
if(isset($_REQUEST["tid_st"]))            {    $tid_st = $_REQUEST["tid_st"];            }
if(isset($_REQUEST["dato_sl"]))          {    $d2 = $_REQUEST["dato_sl"];                }
if(isset($_REQUEST["tid_sl"]))            {    $tid_sl = $_REQUEST["tid_sl"];            }
if(isset($_REQUEST["notat_1"]))          {    $notat_1 = $_REQUEST["notat_1"];          }
if(isset($_REQUEST["notat_2"]))          {    $notat_2 = $_REQUEST["notat_2"];          }
if(isset($_REQUEST["notat_3"]))          {    $notat_3 = $_REQUEST["notat_3"];          }
if(isset($_REQUEST["notat_4"]))          {    $notat_4 = $_REQUEST["notat_4"];          }
if(isset($_REQUEST["notat_5"]))          {    $notat_5 = $_REQUEST["notat_5"];          }
if(isset($_REQUEST["ove"]))              {    $ove = $_REQUEST["ove"];                  }
if(isset($_REQUEST["sted"]))              {    $sted = $_REQUEST["sted"];                }
if(isset($_REQUEST["sted_slut"]))        {    $sted_slut = $_REQUEST["sted_slut"];      }
if(isset($_REQUEST["pris"]))              {    $pris = $_REQUEST["pris"];                }
if(isset($_REQUEST["kage"]))              {    $kage = $_REQUEST["kage"];                }
if(isset($_REQUEST["aktiv"]))            {    $aktiv = $_REQUEST["aktiv"];              }
if(isset($_REQUEST["hyt"]))              {    $hyt = $_REQUEST["hyt"];                  }
if(isset($_REQUEST["type"]))              {    $type = $_REQUEST["type"];                }
if(isset($_REQUEST["boller"]))            {    $boller = $_REQUEST["boller"];            }
if(isset($_REQUEST["andet"]))            {    $andet = $_REQUEST["andet"];              }
if(isset($_REQUEST["type"]))              {    $type = $_REQUEST["type"];                }
if(isset($_REQUEST["l1"]))                {    $l1 = $_REQUEST["l1"];                    }
if(isset($_REQUEST["l2"]))                {    $l2 = $_REQUEST["l2"];                    }
if(isset($_REQUEST["l3"]))                {    $l3 = $_REQUEST["l3"];                    }
if(isset($_REQUEST["l4"]))                {    $l4 = $_REQUEST["l4"];                    }
if(isset($_REQUEST["l5"]))                {    $l5 = $_REQUEST["l5"];                    }
if(isset($_REQUEST["l6"]))                {    $l6 = $_REQUEST["l6"];                    }
if(isset($_REQUEST["l7"]))                {    $l7 = $_REQUEST["l7"];                    }
if(isset($_REQUEST["l8"]))                {    $l8 = $_REQUEST["l8"];                    }
if(isset($_REQUEST["l9"]))                {    $l9 = $_REQUEST["l9"];                    }
if(isset($_REQUEST["l10"]))              {    $l10 = $_REQUEST["l10"];                  }
if(isset($_REQUEST["l11"]))              {    $l11 = $_REQUEST["l11"];                  }
if(isset($_REQUEST["l12"]))              {    $l12 = $_REQUEST["l12"];                  }
if(isset($_REQUEST["l13"]))              {    $l13 = $_REQUEST["l13"];                  }
if(isset($_REQUEST["l14"]))              {    $l14 = $_REQUEST["l14"];                  }
if(isset($_REQUEST["l15"]))              {    $l15 = $_REQUEST["l15"];                  }
if(isset($_REQUEST["l16"]))              {    $l16 = $_REQUEST["l16"];                  }
if(isset($_REQUEST["l17"]))              {    $l17 = $_REQUEST["l17"];                  }
if(isset($_REQUEST["l18"]))              {    $l18 = $_REQUEST["l18"];                  }
if(isset($_REQUEST["l19"]))              {    $l19 = $_REQUEST["l19"];                  }
if(isset($_REQUEST["l20"]))              {    $l20 = $_REQUEST["l20"];                  }
if(isset($_REQUEST["l21"]))              {    $l21 = $_REQUEST["l21"];                  }
if(isset($_REQUEST["l22"]))              {    $l22 = $_REQUEST["l22"];                  }
if(isset($_REQUEST["l23"]))              {    $l23 = $_REQUEST["l23"];                  }
if(isset($_REQUEST["l24"]))              {    $l24 = $_REQUEST["l24"];                  }
if(isset($_REQUEST["l25"]))              {    $l25 = $_REQUEST["l25"];                  }
if(isset($_REQUEST["l26"]))              {    $l26 = $_REQUEST["l26"];                  }
if(isset($_REQUEST["l27"]))              {    $l27 = $_REQUEST["l27"];                  }
if(isset($_REQUEST["l28"]))              {    $l28 = $_REQUEST["l28"];                  }
if(isset($_REQUEST["l29"]))              {    $l29 = $_REQUEST["l29"];                  }
if(isset($_REQUEST["l30"]))              {    $l30 = $_REQUEST["l30"];                  }
if(isset($_REQUEST["l31"]))              {    $l31 = $_REQUEST["l31"];                  }
if(isset($_REQUEST["l32"]))              {    $l32 = $_REQUEST["l32"];                  }
if(isset($_REQUEST["l33"]))              {    $l33 = $_REQUEST["l33"];                  }
if(isset($_REQUEST["l34"]))              {    $l34 = $_REQUEST["l34"];                  }
if(isset($_REQUEST["l35"]))              {    $l35 = $_REQUEST["l35"];                  }
if(isset($_REQUEST["l36"]))              {    $l36 = $_REQUEST["l36"];                  }
if(isset($_REQUEST["l37"]))              {    $l37 = $_REQUEST["l37"];                  }
if(isset($_REQUEST["l38"]))              {    $l38 = $_REQUEST["l38"];                  }
if(isset($_REQUEST["l39"]))              {    $l39 = $_REQUEST["l39"];                  }
if(isset($_REQUEST["l40"]))              {    $l40 = $_REQUEST["l40"];                  }
if(isset($_REQUEST["clipart_1"]))        {    $img_1 = $_REQUEST["clipart_1"];          }
if(isset($_REQUEST["clipart_2"]))        {    $img_2 = $_REQUEST["clipart_2"];          }
if(isset($_REQUEST["clipart_3"]))        {    $img_3 = $_REQUEST["clipart_3"];          }
if(isset($_REQUEST["clipart_4"]))        {    $img_4 = $_REQUEST["clipart_4"];          }
if(isset($_REQUEST["tilmeld_hj"]))        {    $tilmeld_hj = $_REQUEST["tilmeld_hj"];    }
if(isset($_REQUEST["tilmeld_pa"]))        {    $tilmeld_pa = $_REQUEST["tilmeld_pa"];    }
$t1=strtotime($d1);
$dato_st=date("Y-n-j",$t1);
$t2=strtotime($d2);
$dato_sl=date("Y-n-j",$t2);
$values = explode(";", $_REQUEST["leder"]);
$leder = $values[0];
$leder_id = $values[1];
// Bæver
if ($Hbever == "Ja"){
    $hol_bever = 'bever';
mysql_query("INSERT INTO arr
(dato_st, tid_st, dato_sl, tid_sl, notat_1, notat_2, notat_3, notat_4, notat_5, hold, overskrift, sted, sted_slut, pris, leder, leder_id, kage, aktiv, hyt, login_bruger, type, boller, andet, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12, l13, l14, l15, l16, l17, l18, l19, l20, l21, l22, l23, l24, l25, l26, l27, l28, l29, l30, l31, l32, l33, l34, l35, l36, l37, l38, l39, l40, tilmeld_hj, img_1, img_2, img_3, img_4, tilmeld_pa, tilmeld_pa_be1, tilmeld_pa_id, d)
VALUES
('$dato_st','$tid_st','$dato_sl','$tid_sl','$notat_1','$notat_2','$notat_3','$notat_4','$notat_5','$hol_bever','$ove','$sted','$sted_slut','$pris','$leder','$leder_id','$kage','$aktiv','$hyt','$login_1','$type','$boller','$andet','$l1','$l2','$l3','$l4','$l5','$l6','$l7','$l8','$l9','$l10','$l11','$l12','$l13','$l14','$l15','$l16','$l17','$l18','$l19','$l20','$l21','$l22','$l23','$l24','$l25','$l26','$l27','$l28','$l29','$l30','$l31','$l32','$l33','$l34','$l35','$l36','$l37','$l38','$l39','$l40','$tilmeld_hj','$img_1','$img_2','$img_3','$img_4','$tilmeld_pa','$tilmeld_pa_be1','$tilmeld_pa_id','$dt')")
or die(mysql_error()); }
//Ulve
if ($Hulv == "Ja"){
    $hol_ulv = 'ulv';
mysql_query("INSERT INTO arr
(dato_st, tid_st, dato_sl, tid_sl, notat_1, notat_2, notat_3, notat_4, notat_5, hold, overskrift, sted, sted_slut, pris, leder, leder_id, kage, aktiv, hyt, login_bruger, type, boller, andet, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12, l13, l14, l15, l16, l17, l18, l19, l20, l21, l22, l23, l24, l25, l26, l27, l28, l29, l30, l31, l32, l33, l34, l35, l36, l37, l38, l39, l40, tilmeld_hj, img_1, img_2, img_3, img_4, tilmeld_pa, tilmeld_pa_be1, tilmeld_pa_id, d)
VALUES
('$dato_st','$tid_st','$dato_sl','$tid_sl','$notat_1','$notat_2','$notat_3','$notat_4','$notat_5','$hol_ulv','$ove','$sted','$sted_slut','$pris','$leder','$leder_id','$kage','$aktiv','$hyt','$login_1','$type','$boller','$andet','$l1','$l2','$l3','$l4','$l5','$l6','$l7','$l8','$l9','$l10','$l11','$l12','$l13','$l14','$l15','$l16','$l17','$l18','$l19','$l20','$l21','$l22','$l23','$l24','$l25','$l26','$l27','$l28','$l29','$l30','$l31','$l32','$l33','$l34','$l35','$l36','$l37','$l38','$l39','$l40','$tilmeld_hj','$img_1','$img_2','$img_3','$img_4','$tilmeld_pa','$tilmeld_pa_be1','$tilmeld_pa_id','$dt')")
or die(mysql_error()); }
//Junior
if ($Hjunior == "Ja"){
    $hol_junior = 'junior';
mysql_query("INSERT INTO arr
(dato_st, tid_st, dato_sl, tid_sl, notat_1, notat_2, notat_3, notat_4, notat_5, hold, overskrift, sted, sted_slut, pris, leder, leder_id, kage, aktiv, hyt, login_bruger, type, boller, andet, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12, l13, l14, l15, l16, l17, l18, l19, l20, l21, l22, l23, l24, l25, l26, l27, l28, l29, l30, l31, l32, l33, l34, l35, l36, l37, l38, l39, l40, tilmeld_hj, img_1, img_2, img_3, img_4, tilmeld_pa, tilmeld_pa_be1, tilmeld_pa_id, d)
VALUES
('$dato_st','$tid_st','$dato_sl','$tid_sl','$notat_1','$notat_2','$notat_3','$notat_4','$notat_5','$hol_junior','$ove','$sted','$sted_slut','$pris','$leder','$leder_id','$kage','$aktiv','$hyt','$login_1','$type','$boller','$andet','$l1','$l2','$l3','$l4','$l5','$l6','$l7','$l8','$l9','$l10','$l11','$l12','$l13','$l14','$l15','$l16','$l17','$l18','$l19','$l20','$l21','$l22','$l23','$l24','$l25','$l26','$l27','$l28','$l29','$l30','$l31','$l32','$l33','$l34','$l35','$l36','$l37','$l38','$l39','$l40','$tilmeld_hj','$img_1','$img_2','$img_3','$img_4','$tilmeld_pa','$tilmeld_pa_be1','$tilmeld_pa_id','$dt')")
or die(mysql_error()); }
//Spejder
if ($Hspejder == "Ja"){
    $hol_spejder = 'spejder';
mysql_query("INSERT INTO arr
(dato_st, tid_st, dato_sl, tid_sl, notat_1, notat_2, notat_3, notat_4, notat_5, hold, overskrift, sted, sted_slut, pris, leder, leder_id, kage, aktiv, hyt, login_bruger, type, boller, andet, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12, l13, l14, l15, l16, l17, l18, l19, l20, l21, l22, l23, l24, l25, l26, l27, l28, l29, l30, l31, l32, l33, l34, l35, l36, l37, l38, l39, l40, tilmeld_hj, img_1, img_2, img_3, img_4, tilmeld_pa, tilmeld_pa_be1, tilmeld_pa_id, d)
VALUES
('$dato_st','$tid_st','$dato_sl','$tid_sl','$notat_1','$notat_2','$notat_3','$notat_4','$notat_5','$hol_spejder','$ove','$sted','$sted_slut','$pris','$leder','$leder_id','$kage','$aktiv','$hyt','$login_1','$type','$boller','$andet','$l1','$l2','$l3','$l4','$l5','$l6','$l7','$l8','$l9','$l10','$l11','$l12','$l13','$l14','$l15','$l16','$l17','$l18','$l19','$l20','$l21','$l22','$l23','$l24','$l25','$l26','$l27','$l28','$l29','$l30','$l31','$l32','$l33','$l34','$l35','$l36','$l37','$l38','$l39','$l40','$tilmeld_hj','$img_1','$img_2','$img_3','$img_4','$tilmeld_pa','$tilmeld_pa_be1','$tilmeld_pa_id','$dt')")
or die(mysql_error()); }
//Senior
if ($Hsenior == "Ja"){
    $hol_senior = 'senior';
mysql_query("INSERT INTO arr
(dato_st, tid_st, dato_sl, tid_sl, notat_1, notat_2, notat_3, notat_4, notat_5, hold, overskrift, sted, sted_slut, pris, leder, leder_id, kage, aktiv, hyt, login_bruger, type, boller, andet, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12, l13, l14, l15, l16, l17, l18, l19, l20, l21, l22, l23, l24, l25, l26, l27, l28, l29, l30, l31, l32, l33, l34, l35, l36, l37, l38, l39, l40, tilmeld_hj, img_1, img_2, img_3, img_4, tilmeld_pa, tilmeld_pa_be1, tilmeld_pa_id, d)
VALUES
('$dato_st','$tid_st','$dato_sl','$tid_sl','$notat_1','$notat_2','$notat_3','$notat_4','$notat_5','$hol_senior','$ove','$sted','$sted_slut','$pris','$leder','$leder_id','$kage','$aktiv','$hyt','$login_1','$type','$boller','$andet','$l1','$l2','$l3','$l4','$l5','$l6','$l7','$l8','$l9','$l10','$l11','$l12','$l13','$l14','$l15','$l16','$l17','$l18','$l19','$l20','$l21','$l22','$l23','$l24','$l25','$l26','$l27','$l28','$l29','$l30','$l31','$l32','$l33','$l34','$l35','$l36','$l37','$l38','$l39','$l40','$tilmeld_hj','$img_1','$img_2','$img_3','$img_4','$tilmeld_pa','$tilmeld_pa_be1','$tilmeld_pa_id','$dt')")
or die(mysql_error()); }
//Rover
if ($Hrover == "Ja"){
    $hol_rover = 'rover';
mysql_query("INSERT INTO arr
(dato_st, tid_st, dato_sl, tid_sl, notat_1, notat_2, notat_3, notat_4, notat_5, hold, overskrift, sted, sted_slut, pris, leder, leder_id, kage, aktiv, hyt, login_bruger, type, boller, andet, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12, l13, l14, l15, l16, l17, l18, l19, l20, l21, l22, l23, l24, l25, l26, l27, l28, l29, l30, l31, l32, l33, l34, l35, l36, l37, l38, l39, l40, tilmeld_hj, img_1, img_2, img_3, img_4, tilmeld_pa, tilmeld_pa_be1, tilmeld_pa_id, d)
VALUES
('$dato_st','$tid_st','$dato_sl','$tid_sl','$notat_1','$notat_2','$notat_3','$notat_4','$notat_5','$hol_rover','$ove','$sted','$sted_slut','$pris','$leder','$leder_id','$kage','$aktiv','$hyt','$login_1','$type','$boller','$andet','$l1','$l2','$l3','$l4','$l5','$l6','$l7','$l8','$l9','$l10','$l11','$l12','$l13','$l14','$l15','$l16','$l17','$l18','$l19','$l20','$l21','$l22','$l23','$l24','$l25','$l26','$l27','$l28','$l29','$l30','$l31','$l32','$l33','$l34','$l35','$l36','$l37','$l38','$l39','$l40','$tilmeld_hj','$img_1','$img_2','$img_3','$img_4','$tilmeld_pa','$tilmeld_pa_be1','$tilmeld_pa_id','$dt')")
or die(mysql_error()); }
//Alle hold
if ($Halle == "Ja"){
    $hol_alle = 'alle';
mysql_query("INSERT INTO arr
(dato_st, tid_st, dato_sl, tid_sl, notat_1, notat_2, notat_3, notat_4, notat_5, hold, overskrift, sted, sted_slut, pris, leder, leder_id, kage, aktiv, hyt, login_bruger, type, boller, andet, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12, l13, l14, l15, l16, l17, l18, l19, l20, l21, l22, l23, l24, l25, l26, l27, l28, l29, l30, l31, l32, l33, l34, l35, l36, l37, l38, l39, l40, tilmeld_hj, img_1, img_2, img_3, img_4, tilmeld_pa, tilmeld_pa_be1, tilmeld_pa_id, d)
VALUES
('$dato_st','$tid_st','$dato_sl','$tid_sl','$notat_1','$notat_2','$notat_3','$notat_4','$notat_5','$hol_alle','$ove','$sted','$sted_slut','$pris','$leder','$leder_id','$kage','$aktiv','$hyt','$login_1','$type','$boller','$andet','$l1','$l2','$l3','$l4','$l5','$l6','$l7','$l8','$l9','$l10','$l11','$l12','$l13','$l14','$l15','$l16','$l17','$l18','$l19','$l20','$l21','$l22','$l23','$l24','$l25','$l26','$l27','$l28','$l29','$l30','$l31','$l32','$l33','$l34','$l35','$l36','$l37','$l38','$l39','$l40','$tilmeld_hj','$img_1','$img_2','$img_3','$img_4','$tilmeld_pa','$tilmeld_pa_be1','$tilmeld_pa_id','$dt')")
or die(mysql_error()); }
echo '<script>alert("Oprettelse af møde OK");top.location.replace("/rh.php?hold='.$hold.'")</script>';
} }
?>
Avatar billede erikjacobsen Ekspert
14. november 2010 - 22:32 #1
Du bør strukturere koden, så den faktisk er til at læse.

Men måske kommer det herfra:

if(isset($_REQUEST["tilmeld_id"])) {    $tilmeld_id = $_REQUEST["tilmeld_id"];  }
$q = mysql_query("SELECT * FROM tilmeld_pa WHERE id=$tilmeld_id") or die(mysql_error());

Hvis du ikke har en $_REQUEST["tilmeld_id"], så bliver SQL-sætningen forkert.
Avatar billede scooterDK Nybegynder
14. november 2010 - 23:07 #2
Ja, denne del af koden fejler ikke noget, men en anden tilhørende del $type, har jeg lavet på to for skellige måder ($tyo pg $type) , har nu ændret det, det lader umildbart til at virke.

Et tillægs spørgsmål, kan jeg lave følgende kode nemmere, eller "smartere"

Det jeg ønsker er en oprettelse af :

1. alm møde aften, hvor der kun bruges 10 - 15 feldter i mysql databasen
2. Her benyttes alle 60 feldter, for at oprette en lejr eller et arrangement.


Har her vedhæftet den fulde kode... (forventer ikke et svar da det er en meget lang kode.... ) Men håber på et :=)

<?php
include_once("config.php");
checkLoggedIn("yes");
doCSS();
$dt=time();
if(isset($_REQUEST["type"]))          {    $type = $_REQUEST["type"];                }
if(isset($_REQUEST["hold"]))          {    $hold = $_REQUEST["hold"];                }
if(isset($_REQUEST["Hbever"]))        {    $Hbever = $_REQUEST["Hbever"];            }
if(isset($_REQUEST["Hulv"]))          {    $Hulv = $_REQUEST["Hulv"];                }
if(isset($_REQUEST["Hjunior"]))        {    $Hjunior = $_REQUEST["Hjunior"];          }
if(isset($_REQUEST["Hspejder"]))      {    $Hspejder = $_REQUEST["Hspejder"];        }
if(isset($_REQUEST["Hsenior"]))        {    $Hsenior = $_REQUEST["Hsenior"];          }
if(isset($_REQUEST["Hrover"]))        {    $Hrover = $_REQUEST["Hrover"];            }
if(isset($_REQUEST["Halle"]))          {    $Halle = $_REQUEST["Halle"];              }
$login_1=$_SESSION["login"];
$login_2=$_SESSION["password"];
$query = mysql_query("SELECT * FROM hold WHERE hold='$hold'") or die(mysql_error());
while ($row3 = mysql_fetch_array($query)) {$img_menu=$row3["im_1"]; $navn=$row3["navn"];}

if(isset($_POST['opret']))
{ if ($type == "mode"){
if(isset($_REQUEST["dato_st"]))        {    $d = $_REQUEST["dato_st"];                }
if(isset($_REQUEST["ove"]))            {    $ove = $_REQUEST["ove"];                  }
if(isset($_REQUEST["notat_1"]))        {    $be1 = $_REQUEST["notat_1"];              }
if(isset($_REQUEST["notat_2"]))        {    $be2 = $_REQUEST["notat_2"];              }
if(isset($_REQUEST["leder"]))          {    $leder = $_REQUEST["leder"];              }
if(isset($_REQUEST["aktiv"]))          {    $akt = $_REQUEST["aktiv"];                }
if(isset($_REQUEST["sted"]))          {    $ste = $_REQUEST["sted"];                }
if(isset($_REQUEST["hyt"]))            {    $hyt = $_REQUEST["hyt"];                  }
if(isset($_REQUEST["sted_slut"]))      {    $sted_slut = $_REQUEST["sted_slut"];      }


$t1=strtotime($d);
$dato=date("Y-n-j",$t1);
$values = explode(";", $_REQUEST["leder"]);
$ledernav = $values[0];
$leder_id = $values[1];
// Bæver
if ($Hbever == "Ja"){
    $hol_bever = 'bever';
mysql_query("INSERT INTO arr (type, dato_st, overskrift, notat_1, notat_2, leder, leder_id, aktiv, hold, sted, sted_slut, hyt, login_bruger, d) VALUES ('$type','$dato','$ove','$be1','$be2','$ledernav','$leder_id','$akt','$hol_bever','$ste','$sted_slut','$hyt','$login_1','$dt')")
or die(mysql_error()); }
//Ulve
if ($Hulv == "Ja"){
    $hol_ulv = 'ulv';
mysql_query("INSERT INTO arr (type, dato_st, overskrift, notat_1, notat_2, leder, leder_id, aktiv, hold, sted, sted_slut, hyt, login_bruger, d) VALUES ('$type','$dato','$ove','$be1','$be2','$ledernav','$leder_id','$akt','$hol_ulv','$ste','$sted_slut','$hyt','$login_1','$dt')")
or die(mysql_error()); }
//Junior
if ($Hjunior == "Ja"){
    $hol_junior = 'junior';
mysql_query("INSERT INTO arr (type, dato_st, overskrift, notat_1, notat_2, leder, leder_id, aktiv, hold, sted, sted_slut, hyt, login_bruger, d) VALUES ('$type','$dato','$ove','$be1','$be2','$ledernav','$leder_id','$akt','$hol_junior','$ste','$sted_slut','$hyt','$login_1','$dt')")
or die(mysql_error()); }
//Spejder
if ($Hspejder == "Ja"){
    $hol_spejder = 'spejder';
mysql_query("INSERT INTO arr (type, dato_st, overskrift, notat_1, notat_2, leder, leder_id, aktiv, hold, sted, sted_slut, hyt, login_bruger, d) VALUES ('$type','$dato','$ove','$be1','$be2','$ledernav','$leder_id','$akt','$hol_spejder','$ste','$sted_slut','$hyt','$login_1','$dt')")
or die(mysql_error()); }
//Senior
if ($Hsenior == "Ja"){
    $hol_senior = 'senior';
mysql_query("INSERT INTO arr (type, dato_st, overskrift, notat_1, notat_2, leder, leder_id, aktiv, hold, sted, sted_slut, hyt, login_bruger, d) VALUES ('$type','$dato','$ove','$be1','$be2','$ledernav','$leder_id','$akt','$hol_senior','$ste','$sted_slut','$hyt','$login_1','$dt')")
or die(mysql_error()); }
//Rover
if ($Hrover == "Ja"){
    $hol_rover = 'rover';
mysql_query("INSERT INTO arr (type, dato_st, overskrift, notat_1, notat_2, leder, leder_id, aktiv, hold, sted, sted_slut, hyt, login_bruger, d) VALUES ('$type','$dato','$ove','$be1','$be2','$ledernav','$leder_id','$akt','$hol_rover','$ste','$sted_slut','$hyt','$login_1','$dt')")
or die(mysql_error()); }
//Alle hold
if ($Halle == "Ja"){
    $hol_alle = 'alle';
mysql_query("INSERT INTO arr (type, dato_st, overskrift, notat_1, notat_2, leder, leder_id, aktiv, hold, sted, sted_slut, hyt, login_bruger, d) VALUES ('$type','$dato','$ove','$be1','$be2','$ledernav','$leder_id','$akt','$hol_alle','$ste','$sted_slut','$hyt','$login_1','$dt')")
or die(mysql_error()); }

echo '<script>alert("Oprettelse af møde OK");top.location.replace("/rh.php?hold='.$hold.'")</script>';
} else {

if(isset($_REQUEST["tilmeld_id"])) {    $tilmeld_id = $_REQUEST["tilmeld_id"];  }
$q = mysql_query("SELECT * FROM tilmeld_pa WHERE id=$tilmeld_id") or die(mysql_error());
while ($row = mysql_fetch_array($q)) {

$tilmeld_pa = $row[filnavn];
$tilmeld_pa_be1 = $row[be1];
$tilmeld_pa_id = $row[id];

}
if(isset($_REQUEST["dato_st"]))          {    $d1 = $_REQUEST["dato_st"];                }
if(isset($_REQUEST["tid_st"]))            {    $tid_st = $_REQUEST["tid_st"];            }
if(isset($_REQUEST["dato_sl"]))          {    $d2 = $_REQUEST["dato_sl"];                }
if(isset($_REQUEST["tid_sl"]))            {    $tid_sl = $_REQUEST["tid_sl"];            }
if(isset($_REQUEST["notat_1"]))          {    $notat_1 = $_REQUEST["notat_1"];          }
if(isset($_REQUEST["notat_2"]))          {    $notat_2 = $_REQUEST["notat_2"];          }
if(isset($_REQUEST["notat_3"]))          {    $notat_3 = $_REQUEST["notat_3"];          }
if(isset($_REQUEST["notat_4"]))          {    $notat_4 = $_REQUEST["notat_4"];          }
if(isset($_REQUEST["notat_5"]))          {    $notat_5 = $_REQUEST["notat_5"];          }
if(isset($_REQUEST["ove"]))              {    $ove = $_REQUEST["ove"];                  }
if(isset($_REQUEST["sted"]))              {    $sted = $_REQUEST["sted"];                }
if(isset($_REQUEST["sted_slut"]))        {    $sted_slut = $_REQUEST["sted_slut"];      }
if(isset($_REQUEST["pris"]))              {    $pris = $_REQUEST["pris"];                }
if(isset($_REQUEST["kage"]))              {    $kage = $_REQUEST["kage"];                }
if(isset($_REQUEST["aktiv"]))            {    $aktiv = $_REQUEST["aktiv"];              }
if(isset($_REQUEST["hyt"]))              {    $hyt = $_REQUEST["hyt"];                  }
if(isset($_REQUEST["boller"]))            {    $boller = $_REQUEST["boller"];            }
if(isset($_REQUEST["andet"]))            {    $andet = $_REQUEST["andet"];              }
if(isset($_REQUEST["type"]))              {    $type = $_REQUEST["type"];                }
if(isset($_REQUEST["l1"]))                {    $l1 = $_REQUEST["l1"];                    }
if(isset($_REQUEST["l2"]))                {    $l2 = $_REQUEST["l2"];                    }
if(isset($_REQUEST["l3"]))                {    $l3 = $_REQUEST["l3"];                    }
if(isset($_REQUEST["l4"]))                {    $l4 = $_REQUEST["l4"];                    }
if(isset($_REQUEST["l5"]))                {    $l5 = $_REQUEST["l5"];                    }
if(isset($_REQUEST["l6"]))                {    $l6 = $_REQUEST["l6"];                    }
if(isset($_REQUEST["l7"]))                {    $l7 = $_REQUEST["l7"];                    }
if(isset($_REQUEST["l8"]))                {    $l8 = $_REQUEST["l8"];                    }
if(isset($_REQUEST["l9"]))                {    $l9 = $_REQUEST["l9"];                    }
if(isset($_REQUEST["l10"]))              {    $l10 = $_REQUEST["l10"];                  }
if(isset($_REQUEST["l11"]))              {    $l11 = $_REQUEST["l11"];                  }
if(isset($_REQUEST["l12"]))              {    $l12 = $_REQUEST["l12"];                  }
if(isset($_REQUEST["l13"]))              {    $l13 = $_REQUEST["l13"];                  }
if(isset($_REQUEST["l14"]))              {    $l14 = $_REQUEST["l14"];                  }
if(isset($_REQUEST["l15"]))              {    $l15 = $_REQUEST["l15"];                  }
if(isset($_REQUEST["l16"]))              {    $l16 = $_REQUEST["l16"];                  }
if(isset($_REQUEST["l17"]))              {    $l17 = $_REQUEST["l17"];                  }
if(isset($_REQUEST["l18"]))              {    $l18 = $_REQUEST["l18"];                  }
if(isset($_REQUEST["l19"]))              {    $l19 = $_REQUEST["l19"];                  }
if(isset($_REQUEST["l20"]))              {    $l20 = $_REQUEST["l20"];                  }
if(isset($_REQUEST["l21"]))              {    $l21 = $_REQUEST["l21"];                  }
if(isset($_REQUEST["l22"]))              {    $l22 = $_REQUEST["l22"];                  }
if(isset($_REQUEST["l23"]))              {    $l23 = $_REQUEST["l23"];                  }
if(isset($_REQUEST["l24"]))              {    $l24 = $_REQUEST["l24"];                  }
if(isset($_REQUEST["l25"]))              {    $l25 = $_REQUEST["l25"];                  }
if(isset($_REQUEST["l26"]))              {    $l26 = $_REQUEST["l26"];                  }
if(isset($_REQUEST["l27"]))              {    $l27 = $_REQUEST["l27"];                  }
if(isset($_REQUEST["l28"]))              {    $l28 = $_REQUEST["l28"];                  }
if(isset($_REQUEST["l29"]))              {    $l29 = $_REQUEST["l29"];                  }
if(isset($_REQUEST["l30"]))              {    $l30 = $_REQUEST["l30"];                  }
if(isset($_REQUEST["l31"]))              {    $l31 = $_REQUEST["l31"];                  }
if(isset($_REQUEST["l32"]))              {    $l32 = $_REQUEST["l32"];                  }
if(isset($_REQUEST["l33"]))              {    $l33 = $_REQUEST["l33"];                  }
if(isset($_REQUEST["l34"]))              {    $l34 = $_REQUEST["l34"];                  }
if(isset($_REQUEST["l35"]))              {    $l35 = $_REQUEST["l35"];                  }
if(isset($_REQUEST["l36"]))              {    $l36 = $_REQUEST["l36"];                  }
if(isset($_REQUEST["l37"]))              {    $l37 = $_REQUEST["l37"];                  }
if(isset($_REQUEST["l38"]))              {    $l38 = $_REQUEST["l38"];                  }
if(isset($_REQUEST["l39"]))              {    $l39 = $_REQUEST["l39"];                  }
if(isset($_REQUEST["l40"]))              {    $l40 = $_REQUEST["l40"];                  }
if(isset($_REQUEST["clipart_1"]))        {    $img_1 = $_REQUEST["clipart_1"];          }
if(isset($_REQUEST["clipart_2"]))        {    $img_2 = $_REQUEST["clipart_2"];          }
if(isset($_REQUEST["clipart_3"]))        {    $img_3 = $_REQUEST["clipart_3"];          }
if(isset($_REQUEST["clipart_4"]))        {    $img_4 = $_REQUEST["clipart_4"];          }
if(isset($_REQUEST["tilmeld_hj"]))        {    $tilmeld_hj = $_REQUEST["tilmeld_hj"];    }
if(isset($_REQUEST["tilmeld_pa"]))        {    $tilmeld_pa = $_REQUEST["tilmeld_pa"];    }
$t1=strtotime($d1);
$dato_st=date("Y-n-j",$t1);
$t2=strtotime($d2);
$dato_sl=date("Y-n-j",$t2);
$values = explode(";", $_REQUEST["leder"]);
$leder = $values[0];
$leder_id = $values[1];
// Bæver
if ($Hbever == "Ja"){
    $hol_bever = 'bever';
mysql_query("INSERT INTO arr
(dato_st, tid_st, dato_sl, tid_sl, notat_1, notat_2, notat_3, notat_4, notat_5, hold, overskrift, sted, sted_slut, pris, leder, leder_id, kage, aktiv, hyt, login_bruger, type, boller, andet, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12, l13, l14, l15, l16, l17, l18, l19, l20, l21, l22, l23, l24, l25, l26, l27, l28, l29, l30, l31, l32, l33, l34, l35, l36, l37, l38, l39, l40, tilmeld_hj, img_1, img_2, img_3, img_4, tilmeld_pa, tilmeld_pa_be1, tilmeld_pa_id, d)
VALUES
('$dato_st','$tid_st','$dato_sl','$tid_sl','$notat_1','$notat_2','$notat_3','$notat_4','$notat_5','$hol_bever','$ove','$sted','$sted_slut','$pris','$leder','$leder_id','$kage','$aktiv','$hyt','$login_1','$type','$boller','$andet','$l1','$l2','$l3','$l4','$l5','$l6','$l7','$l8','$l9','$l10','$l11','$l12','$l13','$l14','$l15','$l16','$l17','$l18','$l19','$l20','$l21','$l22','$l23','$l24','$l25','$l26','$l27','$l28','$l29','$l30','$l31','$l32','$l33','$l34','$l35','$l36','$l37','$l38','$l39','$l40','$tilmeld_hj','$img_1','$img_2','$img_3','$img_4','$tilmeld_pa','$tilmeld_pa_be1','$tilmeld_pa_id','$dt')")
or die(mysql_error()); }
//Ulve
if ($Hulv == "Ja"){
    $hol_ulv = 'ulv';
mysql_query("INSERT INTO arr
(dato_st, tid_st, dato_sl, tid_sl, notat_1, notat_2, notat_3, notat_4, notat_5, hold, overskrift, sted, sted_slut, pris, leder, leder_id, kage, aktiv, hyt, login_bruger, type, boller, andet, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12, l13, l14, l15, l16, l17, l18, l19, l20, l21, l22, l23, l24, l25, l26, l27, l28, l29, l30, l31, l32, l33, l34, l35, l36, l37, l38, l39, l40, tilmeld_hj, img_1, img_2, img_3, img_4, tilmeld_pa, tilmeld_pa_be1, tilmeld_pa_id, d)
VALUES
('$dato_st','$tid_st','$dato_sl','$tid_sl','$notat_1','$notat_2','$notat_3','$notat_4','$notat_5','$hol_ulv','$ove','$sted','$sted_slut','$pris','$leder','$leder_id','$kage','$aktiv','$hyt','$login_1','$type','$boller','$andet','$l1','$l2','$l3','$l4','$l5','$l6','$l7','$l8','$l9','$l10','$l11','$l12','$l13','$l14','$l15','$l16','$l17','$l18','$l19','$l20','$l21','$l22','$l23','$l24','$l25','$l26','$l27','$l28','$l29','$l30','$l31','$l32','$l33','$l34','$l35','$l36','$l37','$l38','$l39','$l40','$tilmeld_hj','$img_1','$img_2','$img_3','$img_4','$tilmeld_pa','$tilmeld_pa_be1','$tilmeld_pa_id','$dt')")
or die(mysql_error()); }
//Junior
if ($Hjunior == "Ja"){
    $hol_junior = 'junior';
mysql_query("INSERT INTO arr
(dato_st, tid_st, dato_sl, tid_sl, notat_1, notat_2, notat_3, notat_4, notat_5, hold, overskrift, sted, sted_slut, pris, leder, leder_id, kage, aktiv, hyt, login_bruger, type, boller, andet, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12, l13, l14, l15, l16, l17, l18, l19, l20, l21, l22, l23, l24, l25, l26, l27, l28, l29, l30, l31, l32, l33, l34, l35, l36, l37, l38, l39, l40, tilmeld_hj, img_1, img_2, img_3, img_4, tilmeld_pa, tilmeld_pa_be1, tilmeld_pa_id, d)
VALUES
('$dato_st','$tid_st','$dato_sl','$tid_sl','$notat_1','$notat_2','$notat_3','$notat_4','$notat_5','$hol_junior','$ove','$sted','$sted_slut','$pris','$leder','$leder_id','$kage','$aktiv','$hyt','$login_1','$type','$boller','$andet','$l1','$l2','$l3','$l4','$l5','$l6','$l7','$l8','$l9','$l10','$l11','$l12','$l13','$l14','$l15','$l16','$l17','$l18','$l19','$l20','$l21','$l22','$l23','$l24','$l25','$l26','$l27','$l28','$l29','$l30','$l31','$l32','$l33','$l34','$l35','$l36','$l37','$l38','$l39','$l40','$tilmeld_hj','$img_1','$img_2','$img_3','$img_4','$tilmeld_pa','$tilmeld_pa_be1','$tilmeld_pa_id','$dt')")
or die(mysql_error()); }
//Spejder
if ($Hspejder == "Ja"){
    $hol_spejder = 'spejder';
mysql_query("INSERT INTO arr
(dato_st, tid_st, dato_sl, tid_sl, notat_1, notat_2, notat_3, notat_4, notat_5, hold, overskrift, sted, sted_slut, pris, leder, leder_id, kage, aktiv, hyt, login_bruger, type, boller, andet, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12, l13, l14, l15, l16, l17, l18, l19, l20, l21, l22, l23, l24, l25, l26, l27, l28, l29, l30, l31, l32, l33, l34, l35, l36, l37, l38, l39, l40, tilmeld_hj, img_1, img_2, img_3, img_4, tilmeld_pa, tilmeld_pa_be1, tilmeld_pa_id, d)
VALUES
('$dato_st','$tid_st','$dato_sl','$tid_sl','$notat_1','$notat_2','$notat_3','$notat_4','$notat_5','$hol_spejder','$ove','$sted','$sted_slut','$pris','$leder','$leder_id','$kage','$aktiv','$hyt','$login_1','$type','$boller','$andet','$l1','$l2','$l3','$l4','$l5','$l6','$l7','$l8','$l9','$l10','$l11','$l12','$l13','$l14','$l15','$l16','$l17','$l18','$l19','$l20','$l21','$l22','$l23','$l24','$l25','$l26','$l27','$l28','$l29','$l30','$l31','$l32','$l33','$l34','$l35','$l36','$l37','$l38','$l39','$l40','$tilmeld_hj','$img_1','$img_2','$img_3','$img_4','$tilmeld_pa','$tilmeld_pa_be1','$tilmeld_pa_id','$dt')")
or die(mysql_error()); }
//Senior
if ($Hsenior == "Ja"){
    $hol_senior = 'senior';
mysql_query("INSERT INTO arr
(dato_st, tid_st, dato_sl, tid_sl, notat_1, notat_2, notat_3, notat_4, notat_5, hold, overskrift, sted, sted_slut, pris, leder, leder_id, kage, aktiv, hyt, login_bruger, type, boller, andet, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12, l13, l14, l15, l16, l17, l18, l19, l20, l21, l22, l23, l24, l25, l26, l27, l28, l29, l30, l31, l32, l33, l34, l35, l36, l37, l38, l39, l40, tilmeld_hj, img_1, img_2, img_3, img_4, tilmeld_pa, tilmeld_pa_be1, tilmeld_pa_id, d)
VALUES
('$dato_st','$tid_st','$dato_sl','$tid_sl','$notat_1','$notat_2','$notat_3','$notat_4','$notat_5','$hol_senior','$ove','$sted','$sted_slut','$pris','$leder','$leder_id','$kage','$aktiv','$hyt','$login_1','$type','$boller','$andet','$l1','$l2','$l3','$l4','$l5','$l6','$l7','$l8','$l9','$l10','$l11','$l12','$l13','$l14','$l15','$l16','$l17','$l18','$l19','$l20','$l21','$l22','$l23','$l24','$l25','$l26','$l27','$l28','$l29','$l30','$l31','$l32','$l33','$l34','$l35','$l36','$l37','$l38','$l39','$l40','$tilmeld_hj','$img_1','$img_2','$img_3','$img_4','$tilmeld_pa','$tilmeld_pa_be1','$tilmeld_pa_id','$dt')")
or die(mysql_error()); }
//Rover
if ($Hrover == "Ja"){
    $hol_rover = 'rover';
mysql_query("INSERT INTO arr
(dato_st, tid_st, dato_sl, tid_sl, notat_1, notat_2, notat_3, notat_4, notat_5, hold, overskrift, sted, sted_slut, pris, leder, leder_id, kage, aktiv, hyt, login_bruger, type, boller, andet, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12, l13, l14, l15, l16, l17, l18, l19, l20, l21, l22, l23, l24, l25, l26, l27, l28, l29, l30, l31, l32, l33, l34, l35, l36, l37, l38, l39, l40, tilmeld_hj, img_1, img_2, img_3, img_4, tilmeld_pa, tilmeld_pa_be1, tilmeld_pa_id, d)
VALUES
('$dato_st','$tid_st','$dato_sl','$tid_sl','$notat_1','$notat_2','$notat_3','$notat_4','$notat_5','$hol_rover','$ove','$sted','$sted_slut','$pris','$leder','$leder_id','$kage','$aktiv','$hyt','$login_1','$type','$boller','$andet','$l1','$l2','$l3','$l4','$l5','$l6','$l7','$l8','$l9','$l10','$l11','$l12','$l13','$l14','$l15','$l16','$l17','$l18','$l19','$l20','$l21','$l22','$l23','$l24','$l25','$l26','$l27','$l28','$l29','$l30','$l31','$l32','$l33','$l34','$l35','$l36','$l37','$l38','$l39','$l40','$tilmeld_hj','$img_1','$img_2','$img_3','$img_4','$tilmeld_pa','$tilmeld_pa_be1','$tilmeld_pa_id','$dt')")
or die(mysql_error()); }
//Alle hold
if ($Halle == "Ja"){
    $hol_alle = 'alle';
mysql_query("INSERT INTO arr
(dato_st, tid_st, dato_sl, tid_sl, notat_1, notat_2, notat_3, notat_4, notat_5, hold, overskrift, sted, sted_slut, pris, leder, leder_id, kage, aktiv, hyt, login_bruger, type, boller, andet, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12, l13, l14, l15, l16, l17, l18, l19, l20, l21, l22, l23, l24, l25, l26, l27, l28, l29, l30, l31, l32, l33, l34, l35, l36, l37, l38, l39, l40, tilmeld_hj, img_1, img_2, img_3, img_4, tilmeld_pa, tilmeld_pa_be1, tilmeld_pa_id, d)
VALUES
('$dato_st','$tid_st','$dato_sl','$tid_sl','$notat_1','$notat_2','$notat_3','$notat_4','$notat_5','$hol_alle','$ove','$sted','$sted_slut','$pris','$leder','$leder_id','$kage','$aktiv','$hyt','$login_1','$type','$boller','$andet','$l1','$l2','$l3','$l4','$l5','$l6','$l7','$l8','$l9','$l10','$l11','$l12','$l13','$l14','$l15','$l16','$l17','$l18','$l19','$l20','$l21','$l22','$l23','$l24','$l25','$l26','$l27','$l28','$l29','$l30','$l31','$l32','$l33','$l34','$l35','$l36','$l37','$l38','$l39','$l40','$tilmeld_hj','$img_1','$img_2','$img_3','$img_4','$tilmeld_pa','$tilmeld_pa_be1','$tilmeld_pa_id','$dt')")
or die(mysql_error()); }
echo '<script>alert("Oprettelse af møde OK");top.location.replace("/rh.php?hold='.$hold.'")</script>';
} }
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<LINK REL="SHORTCUT ICON" href="/icon32.ico">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>KFUM Børkop gruppen</title>
<style type="text/css">
<!--
body {
    background-color: #3CB371;
}
a:link {
    color: #005500;
    text-decoration: none;
}
a:visited {
    text-decoration: none;
    color: #005500;
}
a:hover {
    text-decoration: none;
    color: #005500;
}
a:active {
    text-decoration: none;
    color: #005500;
}
h1,h2,h3,h4,h5,h6 {
    font-family: Arial, Helvetica, sans-serif;
}
.style1 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 36px;
    color: #FFFFFF;
}
a {
    font-size: 14px;
}
.style5 {font-family: Arial, Helvetica, sans-serif; font-size: 10px; }
.style8 {font-family: Arial, Helvetica, sans-serif; font-size: 12px; }
.style9 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}
.style12 {font-size: 14px}
-->
</style></head>
<body>
<table align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="2" bgcolor="#005500"></td>
    <td height="2" colspan="4" bgcolor="#005500"></td>
    <td height="2" bgcolor="#005500"></td>
  </tr>

  <tr>
    <td height="69" bgcolor="#005500">&nbsp;</td>
    <td colspan="4" bgcolor="#009966"><div align="center"><img src="images/Top_2.png" width="1000" height="100" /></div></td>
    <td width="4" rowspan="7" bgcolor="#005500">&nbsp;</td>
  </tr>
 
  <tr>
    <td bgcolor="#005500"></td>
    <td height="10" colspan="4" bgcolor="#009966"></td>
  </tr>
  <tr>
    <td bgcolor="#005500"></td>
    <td height="2" colspan="4" bgcolor="#005500"></td>
  </tr>
  <tr>
    <td bgcolor="#005500"></td>
    <td height="20" colspan="4" bgcolor="#009966"><div align="center">
    <?php include("menu_login.php");?>
      </div></td>
  </tr>
  <tr>
    <td bgcolor="#005500"></td>
    <td height="2" colspan="4" bgcolor="#005500"></td>
  </tr>

  <tr>
    <td width="2" rowspan="2" bgcolor="#005500"></td>
    <td width="114" rowspan="2" valign="top" bgcolor="#009966"><form id="form4" name="form4" method="post" action="">
     
      <table width="114" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td width="17" align="center" valign="top">&nbsp;</td>
          <td width="79">&nbsp;</td>
          <td width="18">&nbsp;</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td><div align="center">
            <div align="center"></div></td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td colspan="3"><div align="center"></div></td>
        </tr>
        <tr>
          <td colspan="3"><div align="center"></div></td>
          </tr>
        <tr>
          <td><div align="center"></div></td>
          <td><div align="center"></div></td>
          <td><div align="center"></div></td>
        </tr>
        <tr>
          <td><div align="center"></div></td>
          <td><div align="center"><img src = "images/document_add.png"
title = "Opret arrengement"
width = "30"
height = "30"
border = "0"
onclick="window.location='arr_opret.php?type=arr'" /></div></td>
          <td><div align="center"></div></td>
        </tr>
        <tr>
          <td colspan="3"><div align="center"><span class="style43">Opret</span></div></td>
        </tr>
        <tr>
          <td colspan="3"><div align="center"><span class="style51 style12">arrangemnner / Lejr</span></div></td>
          </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td>
        </tr>
        <tr>
          <td></td>
          <td><div align="center"><img src = "images/document_add.png"
title = "Opret mødet"
width = "30"
height = "30"
border = "0"
onclick="window.location='arr_opret.php?type=mode&hold=<?php echo $hold;?>'" /></div></td>
          <td><div align="center"></div></td>
        </tr>
        <tr>
          <td colspan="3"><div align="center"><span class="style43">Opret</span></div></td>
          </tr>
        <tr>
          <td colspan="3"><div align="center"><span class="style51 style12">M&oslash;de</span> aften</div></td>
          </tr>
      </table>
    </form>    </td>
    <td height="162" bgcolor="#005500"></td>
    <td rowspan="2" align="center" bgcolor="#009966"><form id="form1" name="form1" method="post" action="">
      <table border="0" cellpadding="0" cellspacing="0" align="center">
        <tr>
          <td width="2"></td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td width="2"></td>
        </tr>
        <tr>
          <td width="2" height="2" bgcolor="#005500"></td>
          <td width="9" height="2" bgcolor="#005500"></td>
          <td width="100" height="2" bgcolor="#005500"></td>
          <td width="313" height="2" bgcolor="#005500"></td>
          <td width="18" height="2" bgcolor="#005500"></td>
          <td width="34" height="2" bgcolor="#005500"></td>
          <td width="145" height="2" bgcolor="#005500"></td>
          <td width="198" height="2" bgcolor="#005500"></td>
          <td width="29" height="2" bgcolor="#005500"></td>
          <td width="2" height="2" bgcolor="#005500"></td>
        </tr>


        <tr>
          <td width="2" bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td width="2" rowspan="60" bgcolor="#005500"></td>
        </tr>
        <tr>
          <td width="2" bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><span class="style9">Overskrift</span></td>
          <td bgcolor="#009966"><label>
            <input type="text" size="40" name="ove" id="ove" />
            <span class="style9"><img src = "images/info_1.png"
title = "Vejledning"
width = "16"
height = "16"
border = "0"
onclick="window.open('../info/I_rh_arr_overskrift.php','openwindow','width=600,height=400');" /></span></label></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><div align="left"></center>
          </div>          </td>
          <td bgcolor="#009966">Type :</td>
          <td bgcolor="#009966"><? if ($type == "mode" ){?><input type="hidden" name="type" value="<?php echo $type;?>"> <? echo "'".$navn."' Møde aften.";} else {
              ?> <select name="type" id="type">
              <option value="mode">Møde aften</option>
              <option value="arr">Arrangement</option>
              <option value="lejr">Lejr</option>
            </select>
            <span class="style9"><img src = "images/info_1.png" alt=""
width = "16"
height = "16"
border = "0"
title = "Vejledning"
onclick="window.open('../info/I_rh_arr_type.php','openwindow','width=600,height=400');" /></span>            <? } ?>            </td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>
        <tr>
          <td width="2" bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><? if ($type == "arr" ){?><span class="style5">Kage :</span><? } ?></td>
          <td bgcolor="#009966"><? if ($type == "arr" ){?><select name="kage" id="kage">
            <option value="Nej">Nej</option>
            <option value="Ja">Ja</option>
          </select>
            <span class="style9"><img src = "images/info_1.png" alt=""
width = "16"
height = "16"
border = "0"
title = "Vejledning"
onclick="window.open('../info/I_rh_arr_kage.php','openwindow','width=600,height=400');" /></span>            <? } ?></td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>
       
        <tr>
          <td width="2" bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><span class="style5">Dato start.</span></td>
          <td colspan="2" bgcolor="#009966"><input type="text" size="30" name="dato_st" value="" />
            <img src = "images/info_1.png" alt=""
width = "16"
height = "16"
border = "0"
title = "Vejledning"
onclick="window.open('../info/I_rh_arr_start_dato.php','openwindow','width=600,height=400');" /> <span class="style8">Format: mm -dd - &aring;&aring;&aring;&aring;</span></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><? if ($type == "arr" ){?><span class="style5">Boller</span><? } ?></td>
          <td bgcolor="#009966"><? if ($type == "arr" ){?><select name="boller" id="boller">
            <option value="Nej">Nej</option>
            <option value="Ja">Ja</option>
          </select>
            <span class="style9"><img src = "images/info_1.png" alt=""
width = "16"
height = "16"
border = "0"
title = "Vejledning"
onclick="window.open('../info/I_rh_arr_boller.php','openwindow','width=600,height=400');" /></span>            <? } ?></td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>

        <tr>
          <td width="2" bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><? if ($type == "arr" ){?><span class="style5">Tid start.</span><? } ?></td>
          <td bgcolor="#009966"><? if ($type == "arr" ){?><input type="text" size="30" name="tid_st" value="" />
          <span class="style8"> <img src = "images/info_1.png" alt=""
width = "16"
height = "16"
border = "0"
title = "Vejledning"
onclick="window.open('../info/I_rh_arr_tid_start.php','openwindow','width=600,height=400');" />Format: tt : mm</span><? } ?></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><? if ($type == "arr" ){?><span class="style5">Andet</span><? } ?></td>
          <td bgcolor="#009966"><? if ($type == "arr" ){?><select name="andet" id="andet">
            <option value="Nej">Nej</option>
            <option value="Ja">Ja</option>
          </select>
            <span class="style9"><img src = "images/info_1.png" alt=""
width = "16"
height = "16"
border = "0"
title = "Vejledning"
onclick="window.open('../info/I_rh_arr_andet.php','openwindow','width=600,height=400');" /></span>            <? } ?></td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>
        <tr>
          <td width="2" bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><? if ($type == "arr" ){?><span class="style5">Dato slut</span><? } ?></td>
          <td colspan="2" bgcolor="#009966"><? if ($type == "arr" ){?><input type="text" size="30" name="dato_sl" value="" />
            <span class="style8"><img src = "images/info_1.png" alt=""
width = "16"
height = "16"
border = "0"
title = "Vejledning"
onclick="window.open('../info/I_rh_arr_slut_dato.php','openwindow','width=600,height=400');" /></span><span class="style8">Format: mm -dd - åååå </span><? } ?></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><span class="style5">Aktiv</span></td>
          <td bgcolor="#009966"><select name="aktiv" id="aktiv">
            <option value="1">Vises alle steder</option>
            <option value="2">Vises KUN på interne sider</option>
          </select>
            <span class="style9"><img src = "images/info_1.png" alt=""
width = "16"
height = "16"
border = "0"
title = "Vejledning"
onclick="window.open('../info/I_rh_arr_aktiv.php','openwindow','width=600,height=400');" /></span></td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>

        <tr>
          <td width="2" bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><? if ($type == "arr" ){?><span class="style5">Tid slut.</span><? } ?></td>
          <td bgcolor="#009966"><? if ($type == "arr" ){?><input type="text" size="30" name="tid_sl" value="" />
            <span class="style8"><img src = "images/info_1.png" alt=""
width = "16"
height = "16"
border = "0"
title = "Vejledning"
onclick="window.open('../info/I_rh_arr_tid_slut.php','openwindow','width=600,height=400');" />Format: tt : mm</span><? } ?></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><span class="style5">I eller uden for spejderhus </span></td>
          <td bgcolor="#009966"><select name="hyt" id="hyt">
            <option value="1">I spejderhuset</option>
            <option value="0">UDEN for spejderhuset</option>
          </select>
            <span class="style9"><img src = "images/info_1.png" alt=""
width = "16"
height = "16"
border = "0"
title = "Vejledning"
onclick="window.open('../info/I_rh_arr_spejderhuset.php','openwindow','width=600,height=400');" /></span></td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>
       
        <tr>
          <td width="2" bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><span class="style5">M&oslash;dested.</span></td>
          <td bgcolor="#009966"><input type="text" size="40" name="sted" id="sted" value="" />
            <span class="style8"><img src = "images/info_1.png" alt=""
width = "16"
height = "16"
border = "0"
title = "Vejledning"
onclick="window.open('../info/I_rh_arr_mode_sted.php','openwindow','width=600,height=400');" /></span></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><? if ($type == "arr" ){?><span class="style5">Papir formular</span><? } ?></td>
          <td bgcolor="#009966"><? if ($type == "arr" ){
          $q = mysql_query("SELECT * FROM tilmeld_pa") or die(mysql_error());
    echo"<select name='tilmeld_id'>";
  while($rowpa = mysql_fetch_array($q)) {
      echo"<option value=$rowpa[id]>$rowpa[be1]</option>";
  }
    echo"</select>"; ?><img src = "images/info_1.png" alt=""
width = "16"
height = "16"
border = "0"
title = "Vejledning"
onclick="window.open('../info/I_rh_arr_papir.php','openwindow','width=600,height=400');" /> <?
          }?></td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>
        <tr>
          <td width="2" bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><span class="style5">Slut sted.</span></td>
          <td bgcolor="#009966"><input type="text" size="40" name="sted_slut" id="sted_slut" value="" />
            <span class="style8"><img src = "images/info_1.png" alt=""
width = "16"
height = "16"
border = "0"
title = "Vejledning"
onclick="window.open('../info/I_rh_arr_slut_sted.php','openwindow','width=600,height=400');" /></span></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><span class="style5">Alle hold</span></td>
          <td bgcolor="#009966"><? if ($hold == "alle" ){?>
          <select name="Halle" id="Halle">
            <option value="Ja">Ja</option>
            <option value="Nej">Nej</option>
          </select><? } else { ?>
            <select name="Halle" id="Halle">
            <option value="Nej">Nej</option>
            <option value="Ja">Ja</option>
          </select> <? } ?>
          <img src = "images/info_1.png" alt=""
width = "16"
height = "16"
border = "0"
title = "Vejledning"
onclick="window.open('../info/I_rh_arr_alle.php','openwindow','width=600,height=400');" /></td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>
        <tr>
          <td width="2" bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><span class="style5">Ansvarlig leder </span></td>
          <td bgcolor="#009966"><?
          $q = mysql_query("SELECT * FROM leder") or die(mysql_error());
    echo"<select name='leder'>";
    while($rowdr = mysql_fetch_array($q)) {
      echo"<option value=$rowdr[fornavn];$rowdr[id]>{$rowdr[fornavn]}{$rowdr[efternavn]}</option>";
  }
    echo"</select>";
?>
            <span class="style8"><img src = "images/info_1.png" alt=""
width = "16"
height = "16"
border = "0"
title = "Vejledning"
onclick="window.open('../info/I_rh_arr_leder.php','openwindow','width=600,height=400');" /></span></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><span class="style5">B&aelig;ver</span></td>
          <td bgcolor="#009966"><? if ($hold == "bever" ){?>
          <select name="Hbever" id="Hbever">
            <option value="Ja">Ja</option>
            <option value="Nej">Nej</option>
          </select><? } else { ?>
            <select name="Hbever" id="Hbever">
            <option value="Nej">Nej</option>
            <option value="Ja">Ja</option>
          </select> <? } ?>
          <img src = "images/info_1.png" alt=""
width = "16"
height = "16"
border = "0"
title = "Vejledning"
onclick="window.open('../info/I_rh_arr_bever.php','openwindow','width=600,height=400');" /></td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>

        <tr>
          <td width="2" bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><? if ($type == "arr" ){?><span class="style5">Pris</span><? } if ($type == "lejr" ){?><span class="style5">Pris</span><? } ?></td>
          <td bgcolor="#009966"><? if ($type == "arr" ){?><input type="text" size="10" name="pris" id="pris" value="" />
            <span class="style8"><img src = "images/info_1.png" alt=""
width = "16"
height = "16"
border = "0"
title = "Vejledning"
onclick="window.open('../info/I_rh_arr_pris.php','openwindow','width=600,height=400');" /> fx. 150,00</span><? } if ($type == "lejr" ){?><input type="text" size="10" name="pris" id="pris" value="" />
            <span class="style8"><img src = "images/info_1.png" alt=""
width = "16"
height = "16"
border = "0"
title = "Vejledning"
onclick="window.open('../info/I_rh_arr_pris.php','openwindow','width=600,height=400');" /> fx. 150,00</span><? } ?></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><span class="style5">Ulve</span></td>
          <td bgcolor="#009966"><? if ($hold == "ulv" ){?>
          <select name="Hulv" id="Hulv">
            <option value="Ja">Ja</option>
            <option value="Nej">Nej</option>
          </select><? } else { ?><select name="Hulv" id="Hulv">
            <option value="Nej">Nej</option>
            <option value="Ja">Ja</option>
          </select> <? } ?>
          <img src = "images/info_1.png" alt=""
width = "16"
height = "16"
border = "0"
title = "Vejledning"
onclick="window.open('../info/I_rh_arr_ulv.php','openwindow','width=600,height=400');" /></td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>
        <tr>
          <td width="2" bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966" class="style5"><? if ($type == "arr" ){?>Internet tilmelding<? } ?></td>
          <td bgcolor="#009966"><? if ($type == "arr" ){?><select name="tilmeld_hj" id="tilmeld_hj">
            <option value="Ja">Ja</option>
            <option value="Nej">Nej</option>
          </select>
            <span class="style8"><img src = "images/info_1.png" alt=""
width = "16"
height = "16"
border = "0"
title = "Vejledning"
onclick="window.open('../info/I_rh_arr_internet.php','openwindow','width=600,height=400');" /></span>            <? } ?></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><span class="style5">Junior</span></td>
          <td bgcolor="#009966"><? if ($hold == "junior" ){?>
          <select name="Hjunior" id="Hjunior">
            <option value="Ja">Ja</option>
            <option value="Nej">Nej</option>
          </select><? } else { ?><select name="Hjunior" id="Hjunior">
            <option value="Nej">Nej</option>
            <option value="Ja">Ja</option>
          </select> <? } ?>
          <img src = "images/info_1.png" alt=""
width = "16"
height = "16"
border = "0"
title = "Vejledning"
onclick="window.open('../info/I_rh_arr_junior.php','openwindow','width=600,height=400');" /></td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>
       
       
        <tr>
          <td bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><span class="style5">Storspejder(Spejder)</span></td>
          <td bgcolor="#009966"><? if ($hold == "spejder" ){?>
          <select name="Hspejder" id="Hspejder">
            <option value="Ja">Ja</option>
            <option value="Nej">Nej</option>
          </select><? } else { ?><select name="Hspejder" id="Hspejder">
            <option value="Nej">Nej</option>
            <option value="Ja">Ja</option>
          </select> <? } ?>
          <img src = "images/info_1.png" alt=""
width = "16"
height = "16"
border = "0"
title = "Vejledning"
onclick="window.open('../info/I_rh_arr_spejder.php','openwindow','width=600,height=400');" /></td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>
        <tr>
          <td bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><span class="style5">Senior</span></td>
          <td bgcolor="#009966"><? if ($hold == "senior" ){?>
          <select name="Hsenior" id="Hsenior">
            <option value="Ja">Ja</option>
            <option value="Nej">Nej</option>
          </select><? } else { ?><select name="Hsenior" id="Hsenior">
            <option value="Nej">Nej</option>
            <option value="Ja">Ja</option>
          </select> <? } ?>
          <img src = "images/info_1.png" alt=""
width = "16"
height = "16"
border = "0"
title = "Vejledning"
onclick="window.open('../info/I_rh_arr_senior.php','openwindow','width=600,height=400');" /></td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>
        <tr>
          <td bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><span class="style5">Rover</span></td>
          <td bgcolor="#009966"><? if ($hold == "rover" ){?>
          <select name="Hrover" id="Hrover">
            <option value="Ja">Ja</option>
            <option value="Nej">Nej</option>
          </select><? } else { ?><select name="Hrover" id="Hrover">
            <option value="Nej">Nej</option>
            <option value="Ja">Ja</option>
          </select> <? } ?>
          <img src = "images/info_1.png" alt=""
width = "16"
height = "16"
border = "0"
title = "Vejledning"
onclick="window.open('../info/I_rh_arr_rover.php','openwindow','width=600,height=400');" /></td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>
        <tr>
          <td width="2" bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><? if ($type == "arr" ){?><span class="style5">Punkt opstilling eller pakkeliste :</span><? } ?>
            <img src = "images/info_1.png" alt=""
width = "16"
height = "16"
border = "0"
title = "Vejledning"
onclick="window.open('../info/I_rh_arr_punkt.php','openwindow','width=600,height=400');" /></td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>
     
        <tr>
          <td width="2" bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><span class="style8">Notat 1 </span></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>
        <tr>
          <td width="2" bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><span class="style5">Max 30 ord</span></td>
          <td rowspan="6" bgcolor="#009966"><textarea name="notat_1" id="notat_1" cols="45" rows="4"></textarea>
            <span class="style8"><img src = "images/info_1.png" alt=""
width = "16"
height = "16"
border = "0"
title = "Vejledning"
onclick="window.open('../info/I_rh_arr_n1.php','openwindow','width=600,height=400');" /></span></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><? if ($type == "arr" ){?><input type="text" size="30" name="l1" value="" /><? } ?></td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>
        <tr>
          <td width="2" bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><span class="style5">Max 3 linieskift.</span></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">.</td>
          <td bgcolor="#009966"><? if ($type == "arr" ){?><input type="text" size="30" name="l2" value="" /><? } ?></td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>
        <tr>
          <td width="2" bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td rowspan="5" bgcolor="#009966">
          <? if (empty($hold)){} else { ?>
          <img src = "images/enhedslogoer_net/<? echo $img_menu; ?>"
title = ""
width = "96"
height = "56"
border = "0"
onclick="" /><? } ?></td>
          <td bgcolor="#009966"><? if ($type == "arr" ){?><input type="text" size="30" name="l3" value="" /><? } ?></td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>
        <tr>
          <td width="2" bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><? if ($type == "arr" ){?><input type="text" size="30" name="l4" value="" /><? } ?></td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>
        <tr>
          <td width="2" bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><? if ($type == "arr" ){?><input type="text" size="30" name="l5" value="" /><? } ?></td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>
        <tr>
          <td width="2" bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><? if ($type == "arr" ){?><input type="text" size="30" name="l6" value="" /><? } ?></td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>
        <tr>
          <td width="2" bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><? if ($type == "arr" ){?><input type="text" size="30" name="l7" value="" /><? } ?></td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>
        <tr>
          <td width="2" bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><span class="style8">Notat 2</span></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><? if ($type == "arr" ){?><input type="text" size="30" name="l8" value="" /><? } ?></td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>
        <tr>
          <td width="2" bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><span class="style5">Max 60 ord</span></td>
          <td rowspan="3" bgcolor="#009966"><textarea name="notat_2" id="notat_2" cols="45" rows="4"></textarea>
            <span class="style8"><img src = "images/info_1.png" alt=""
width = "16"
height = "16"
border = "0"
title = "Vejledning"
onclick="window.open('../info/I_rh_arr_n2_n3.php','openwindow','width=600,height=400');" /></span></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><? if ($type == "arr" ){?><input type="text" size="30" name="l9" value="" /><? } ?></td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>
        <tr>
          <td width="2" bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><span class="style5">Max 6 linieskift.</span></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><? if ($type == "arr" ){?><input type="text" size="30" name="l10" value="" /><? } ?></td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>
        <tr>
          <td width="2" bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><label for="akt"></label></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><? if ($type == "arr" ){?><input type="text" size="30" name="l11" value="" /><? } ?></td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>
        <? if ($type == "arr" ){?>
        <tr>
          <td width="2" bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><input type="text" size="30" name="l12" value="" /></td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>
        <tr>
          <td width="2" bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><?
          $q = mysql_query("SELECT * FROM clipart") or die(mysql_error());
    echo"<select name='clipart_1'>";
    echo"<option value='img_0.jpg'>'img_0.jpg'</option>";
    while($rowcl1 = mysql_fetch_array($q)) {echo"<option value=$rowcl1[img_jpg]>$rowcl1[be1]</option>";}
    echo"</select>";
?>
            <span class="style8"><img src = "images/info_1.png" alt=""
width = "16"
height = "16"
border = "0"
title = "Vejledning"
onclick="window.open('../info/I_rh_arr_n2_n3.php','openwindow','width=600,height=400');" /></span></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><input type="text" size="30" name="l13" value="" /></td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>
        <tr>
          <td width="2" bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><input type="text" size="30" name="l14" value="" /></td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>
        <tr>
          <td width="2" bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><input type="text" size="30" name="l15" value="" /></td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>
        <tr>
          <td width="2" bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><input type="text" size="30" name="l16" value="" /></td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>
        <tr>
          <td width="2" bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><span class="style8">Notat 3</span></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><input type="text" size="30" name="l17" value="" /></td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>
        <tr>
          <td width="2" bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><span class="style5">Max 60 ord</span></td>
          <td rowspan="3" bgcolor="#009966"><textarea name="notat_3" id="notat_3" cols="45" rows="4"></textarea>
            <span class="style8"><img src = "images/info_1.png" alt=""
width = "16"
height = "16"
border = "0"
title = "Vejledning"
onclick="window.open('../info/I_rh_arr_n2_n3.php','openwindow','width=600,height=400');" /></span></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><input type="text" size="30" name="l18" value="" /></td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>
       
       
        <tr>
          <td width="2" bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><span class="style5">Max 6 linieskift.</span></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><input type="text" size="30" name="l19" value="" /></td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>
        <tr>
          <td width="2" bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><input type="text" size="30" name="l20" value="" /></td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>
        <tr>
          <td width="2" bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><input type="text" size="30" name="l21" value="" /></td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>
        <tr>
          <td width="2" bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><?
          $q2 = mysql_query("SELECT * FROM clipart") or die(mysql_error());
    echo"<select name='clipart_2'>";
    echo"<option value='img_0.jpg'>'img_0.jpg'</option>";
    while($rowcl2 = mysql_fetch_array($q2)) {echo"<option value=$rowcl2[img_jpg]>$rowcl2[be1]</option>";}
    echo"</select>";
?>
            <span class="style8"><img src = "images/info_1.png" alt=""
width = "16"
height = "16"
border = "0"
title = "Vejledning"
onclick="window.open('../info/I_rh_arr_n2_n3.php','openwindow','width=600,height=400');" /></span></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><input type="text" size="30" name="l22" value="" /></td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>
        <tr>
          <td width="2" bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><input type="text" size="30" name="l23" value="" /></td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>
        <tr>
          <td width="2" bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><input type="text" size="30" name="l24" value="" /></td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>
        <tr>
          <td width="2" bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><input type="text" size="30" name="l25" value="" /></td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>
        <tr>
          <td width="2" bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><span class="style8">Notat 4</span></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><input type="text" size="30" name="l26" value="" /></td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>
        <tr>
          <td width="2" bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><span class="style5">Max 80 ord</span></td>
          <td rowspan="3" bgcolor="#009966"><textarea name="notat_4" id="notat_4" cols="45" rows="4"></textarea>
            <span class="style8"><img src = "images/info_1.png" alt=""
width = "16"
height = "16"
border = "0"
title = "Vejledning"
onclick="window.open('../info/I_rh_arr_n4_n5.php','openwindow','width=600,height=400');" /></span></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><input type="text" size="30" name="l27" value="" /></td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>
        <tr>
          <td width="2" bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><span class="style5">Max  7 linieskift.</span></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><input type="text" size="30" name="l28" value="" /></td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>
        <tr>
          <td width="2" bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><input type="text" size="30" name="l29" value="" /></td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>
        <tr>
          <td width="2" bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><input type="text" size="30" name="l30" value="" /></td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>
        <tr>
          <td width="2" bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><?
          $q3 = mysql_query("SELECT * FROM clipart") or die(mysql_error());
    echo"<select name='clipart_3'>";
    echo"<option value='img_0.jpg'>'img_0.jpg'</option>";
    while($rowcl3 = mysql_fetch_array($q3)) {echo"<option value=$rowcl3[img_jpg]>$rowcl3[be1]</option>";}
    echo"</select>";
?>
            <span class="style8"><img src = "images/info_1.png" alt=""
width = "16"
height = "16"
border = "0"
title = "Vejledning"
onclick="window.open('../info/I_rh_arr_n4_n5.php','openwindow','width=600,height=400');" /></span></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><input type="text" size="30" name="l31" value="" /></td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>
        <tr>
          <td width="2" bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><input type="text" size="30" name="l32" value="" /></td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>
        <tr>
          <td width="2" bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><input type="text" size="30" name="l33" value="" /></td>
          <td bgcolor="#009966">&nbsp;</td>
          </tr>
        <tr>
          <td width="2" bgcolor="#005500"></td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966">&nbsp;</td>
          <td bgcolor="#009966"><input type="text" size="30" name="l34" value="" /></td>
   
Avatar billede erikjacobsen Ekspert
14. november 2010 - 23:16 #3
Ja, du kan sikkert lave det smartere - men det får du ikke mig til ;)

Jeg tænker i retning af at opdele i klasser i PHP, fx i et af de kendte frameworks, eks. http://cakephp.org/

Det giver struktur, og mulighed for at andre og en selv kan overskue hvad der sker. Ulempen er en højere indlæringskurve, før man kan det.
Avatar billede scooterDK Nybegynder
14. november 2010 - 23:47 #4
Ja, det kommer ikke som nogen overraskelse :=), Det startede med at der var nogen der spurgte om jeg ville lave en hjemmeside til dem, ja nogle KFUM spejdere, Jeg har ikke lavet hjemmesider før, men er derimod DTP mand, og sidst jeg kiggede på hjemmesider, var dengang der kun fandtes ASP og HTML... et par år siden...

Men tak jeg vil læse på linket og forhåbentligt lære en hel del... Tak for hjælpen, og læg et svar hvis du..... ja

men take a pick, siden er næsten færdig.. www.kfum-borkop.dk
Avatar billede scooterDK Nybegynder
14. december 2010 - 19:42 #5
svar
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