• Login
  • Register
  • Zoek
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • Filebase Entry
  • More Options

ICTscripters

Dé plek voor IT

Dé plek voor IT

Login

Geavanceerde opties
  1. Home
  2. Forum
    1. Alle berichten
    2. Recente activiteiten
  3. ICT Nieuws
  4. Blog
  5. Marktplaats
    1. Werk
    2. Advertenties
    3. Domeinnamen
    4. Websites
    5. Design & lay-outs
    6. Scripts
    7. Overige
  6. Design
  7. Leden
    1. Actieve bezoekers
    2. Team
    3. Leden zoeken
  8. Downloads
  9. Goedkope domeinnamen
  1. Home
  2. Forum
    1. Alle berichten
    2. Recente activiteiten
  3. ICT Nieuws
  4. Blog
  5. Marktplaats
    1. Werk
    2. Advertenties
    3. Domeinnamen
    4. Websites
    5. Design & lay-outs
    6. Scripts
    7. Overige
  6. Design
  7. Leden
    1. Actieve bezoekers
    2. Team
    3. Leden zoeken
  8. Downloads
  9. Goedkope domeinnamen
  1. Home
  2. Forum
    1. Alle berichten
    2. Recente activiteiten
  3. ICT Nieuws
  4. Blog
  5. Marktplaats
    1. Werk
    2. Advertenties
    3. Domeinnamen
    4. Websites
    5. Design & lay-outs
    6. Scripts
    7. Overige
  6. Design
  7. Leden
    1. Actieve bezoekers
    2. Team
    3. Leden zoeken
  8. Downloads
  9. Goedkope domeinnamen
  1. Dé plek voor IT - ICTscripters
  2. Forum
  3. Scripting & programmeren
  4. Overige
  5. Archief
  6. Request

Forum

  • Het Grote Vibe Code Topic

    eeyk 22 mei 2026 om 19:28
  • Ictscripters Chat

    AarClay 21 april 2026 om 11:34
  • PWYL source gezocht

    Syntax 25 maart 2026 om 11:44
  • Help testers nodig voor android app Urgent

    Servertjee 20 februari 2026 om 12:07
  • Partner Gezocht om meerdere NFT Collecties op Open Sea te Plaatsen

    Servertjee 20 februari 2026 om 12:06
  • Afspraken systeem met planbeperking

    Jeffrey.Hoekman 20 februari 2026 om 11:52
  • Developer Gezocht

    Servertjee 19 februari 2026 om 17:31
  • Na 15 jaar terug van weggeweest: iCriminals.nl is terug (BETA)!

    Servertjee 18 februari 2026 om 16:57

Marktplaats

  • 370 Nieuwe Domeinnamen April 2026

    shiga 1 mei 2026 om 12:06
  • Snel een website nodig?

    Syntax 10 april 2026 om 12:55
  • Sicarras.com - Moderne Mafia Text-Based RPG

    Syntax 5 april 2026 om 16:22

Scripter

  • Starohosting
  • 6 november 2011 om 16:54
  • Starohosting
    Professional
    Ontvangen Reacties
    6
    Berichten
    736
    • 6 november 2011 om 16:54
    • #1

    Beste leden,

    Ik heb de volgende code ingebouwd in me layout alleen kom ik nu steeds tot een 500 intern server error.
    Zou iemand die ervaring heeft met php het eens willen proberen.
    Misschien dat het dan wel lukt:

    PHP
    <?PHP
    $query = "SELECT id, name FROM $table_sections WHERE invisible != 'yes' ORDER BY sort"; 
    $result = mysql_query($query);
    while ($sectionmenu = mysql_fetch_array($result))
    {
    if($sectionmenu[0] == $section)
    	{
         print "<li><a class=\"active\" href=\"index.php?section=$sectionmenu[0]\">$sectionmenu[1]</a></li>";
        }
    else
    	{
    	print "<li><a href=\"index.php?section=$sectionmenu[0]\">$sectionmenu[1]</a></li>";
        }
    }
    ?>
    
    
    Dit stukje moet in de ul id nav
    -------------------------------------------------
    <?PHP
    $query1 = "SELECT id, name FROM $table_pages WHERE section='$section' AND invisible != 'yes' ORDER BY sort";
    $result1 = mysql_query($query1) or die_script(mysql_error());
    while ($pagemenu = mysql_fetch_array($result1))
    {
    	if($pagemenu[0] == $page)
    	{
    		print "<li><i><b><a class=\"more\" href=\"index.php?page=$pagemenu[0]&amp;section=$section\">$pagemenu[1]</a></b></i><li>";
    	}
    	else
    	{
    		print "<li><a class=\"more\" href=\"index.php?page=$pagemenu[0]&amp;section=$section\">$pagemenu[1]</a></li>";
    	}
    }
    ?>
    
    
    Dit stukje moet in de subarrow
    --------------------------------------------------
    <div id="topUserBar">
    <div class="centerContainer">
    <ul id="nav">
    <li class="top"><a href="#" id="products" class="top_link"><span class="down">Facturen</span></a>
    <li class="top"><a href="#" id="products" class="top_link"><span class="down">Facturen</span></a>
    <li class="top"><a href="#" id="products" class="top_link"><span class="down">Facturen</span></a>
    <li class="top"><a href="#" id="products" class="top_link"><span class="down">Facturen</span></a>
    <li class="top"><a href="#" id="products" class="top_link"><span class="down">Facturen</span></a>
    
    
    <ul class="sub">
    <span class="subArrow">&nbsp;</span>
    
    
    <li><a href="#">Onbetaalde facturen</a></li>
    <li><a href="#">Betaalde facturen</a></li>
    <li><a href="#">Volledig overzicht</a></li>
    <li><a href="#" class="last">Aanmanningen</a></li>
    
    
    </ul>
    </li>
    </div>
    
    
    Orginele versie waarin het ingebouwd moet worden
    --------------------------------------------------
    Toon Meer

    Mijn eigen versie hoe ik het heb gedaan:

    PHP
    <?PHP
    if ( !defined('IN_SAS') )
    {
    	die("Hacking attempt");
    }
    ?>
    
    
    <!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">
    
    
    <!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">
    
    
    <?PHP
      print "<title>$sitename - $pagetitle</title>";
    ?>
    
    
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script src="js/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="js/jquery-ui-personalized-1.5.3.packed.js" type="text/javascript"></script>
    <script src="js/jquery-ui-personalized-1.5.3.packed.js" type="text/javascript"></script>
    <link rel="stylesheet" type="text/css" href="<?PHP echo $cmsdir ?>/themes/<?PHP echo $themelocation ?>/css/include.css" />
    </head>
    
    
    <body>
    
    
    
    
    
    
    <div id="wrapper">
    <div id="topUserBar">
    <div class="centerContainer">
    <ul id="nav">
    
    
    <?PHP
    $query = "SELECT id, name FROM $table_sections WHERE invisible != 'yes' ORDER BY sort"; 
    $result = mysql_query($query);
    while ($sectionmenu = mysql_fetch_array($result))
    {
    if($sectionmenu[0] == $section)
    	{
         print "<li class="top"><a href="index.php?section=$sectionmenu[0]\" id="products" class="top_link"><span class="down">$sectionmenu[1]</span></a>";
        }
    else
    	{
    	print "<li class="top"><a href="index.php?section=$sectionmenu[0]\" id="products" class="top_link"><span class="down">$sectionmenu[1]</span></a>";
        }
    }
    ?>
    
    
    
    
    <ul class="sub">
    <span class="subArrow">&nbsp;</span>
    
    
    <?PHP
    $query1 = "SELECT id, name FROM $table_pages WHERE section='$section' AND invisible != 'yes' ORDER BY sort";
    $result1 = mysql_query($query1) or die_script(mysql_error());
    while ($pagemenu = mysql_fetch_array($result1))
    {
    	if($pagemenu[0] == $page)
    	{
    		print "<li><a href=\"index.php?page=$pagemenu[0]&amp;section=$section\">$pagemenu[1]</a><li>";
    	}
    	else
    	{
    		print "<li><a href=\"index.php?page=$pagemenu[0]&amp;section=$section\">$pagemenu[1]</a></li>";
    	}
    }
    ?>
    
    
    </ul>
    </li>
    </div>
    
    
    <div id="header">
    <div id="header-img">
    </div>
    </div>
    
    
    <div id="content">
    <div class="contop">
    <div class="contitle">
    <div class="t-content">
    
    
    
    
    
    
    </div>
    </div>
    </div>
        
    
    
    
    
    
    
    
    
    
    
    
    
    <div class="concenter">
    <div class="context"> 
    
    
    </br>
    
    
    <?PHP
    $query = "SELECT module FROM $table_pages WHERE id='$page'";
    $result = mysql_query($query);
    $module = mysql_result($result,0);
    unset($query);
    unset($result);
    if($module != '')
    {
     include($cmsdir."/modules/".$module);
    }
    else
    {
     $query = "SELECT content FROM $table_pages WHERE id='$page'";
     $result = mysql_query($query);
     $content = mysql_result($result,0);
     unset($query);
     unset($result);
     $content = str_replace("../","",$content);
     print $content;
    }
    
    
    ?>
    </div>
    </div>
    
    
    <div class="conbottom"></div>
    </div>
    
    
    
    
    <div id="footer">
    <div class="copyright">
    <div class="copytext"> 
    <a href="http://rvko.nl" target=_"blank">Een school van de RVKO </a> | Alle rechten voorbehouden | Gemaakt door: <a href="http://starohosting.nl">Starohosting.nl </a>
    
    
    </div>
    </div>
    </div>
    
    
    </body>
    </html>
    Toon Meer

    Hosting nodig met hoogwaardige kwaliteit? voor lage prijzen!
    Bekijk onze website: hostingkwaliteit.com

    Heb ik je goed geholpen? geef me dan een drankje via:
    paypal.me

Participate now!

Heb je nog geen account? Registreer je nu en word deel van onze community!

Maak een account aan Login

ICT Nieuws

  • Datalek bij leverancier Canvas - Universiteit van Amsterdam

    ICTscripters 10 mei 2026 om 12:03
  • Data privacy in 2026: Hoe de naleving van GDPR verandert

    ICTscripters 8 mei 2026 om 12:16
  • Tech.eu - Europees Start-up, Financiering en Technologienieuws

    ICTscripters 7 mei 2026 om 12:15

Blogs

  • Functioneel ontwerp

    Dees 28 december 2014 om 12:38
  • Access Control List implementatie in PHP/MySQL - deel 1/2

    FangorN 28 december 2018 om 12:35
  • Access Control List implementatie in PHP/MySQL - deel 2/2

    FangorN 29 december 2018 om 12:37
  1. Marktplaats
  2. Design
  3. Voorwaarden
  4. Ons team
  5. Leden
  6. Geschiedenis
  7. Regels
  8. Links
  9. Privacy Policy
ICTscripters ©2005 - 2026 , goedkope hosting door DiMoWeb.com, BE0558.915.582
Sponsors: Beste kattenhotel provincie Antwerpen | Beste Zetes eid kaartlezer webshop
Style: Nexus by cls-design
Stylename
Nexus
Manufacturer
cls-design
Licence
Commercial styles
Help
Supportforum
Visit cls-design