Kleine Vragen Topic #3

Gestart doorStef2.514 reacties9.659 weergaven

2.515 berichten · pagina 12 van 168

Berichten
11.263
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik heb een klein vraagje over games maken met Gamemaker.

Ik heb dus heel de tijd buizen de random spawnen.
En dus om punten te ontvangen, laat ik over die bozen een object spawnen, en als de vogel daardoor vliegt, krijgt die punten;
Spoiler tonen
Afbeelding
Het wad dus mijn bedoeling om zo maar 1 object te spawnen, zodat de vogel ook maar 1 punt zou krijgen.

Ik spawn een punt per stap dat de buis zet;
Afbeelding

Maar nu dus per stap dat de buis zet, spawnt het een buis. En zo krijgt het vogeltje dus tot 150 - 300 punten per buis dat het doorvliegt, omdat het teveel punten spawnt.

Weet iemand hoe ik zorg dat er maar 1 object spawnt?

Ik had al het idee om te kijken check_collision_free. Maar dat ik uitgesloten omdat het al op de buis spawnt, en dan komt er gewoon geen punt.

Als je geen Gamemaker hebt, kan je me ook gewoon helpen met logisch nadenken, wat je wel vrij goed kan als je een vaste game maker bent.

-----------------
EDIT

Ik heb het aantal spawnende punten al kunnen verminderen van 150 - 300 naar 20 - 50
Dat heb ik gedaan door dit;
Afbeelding

Dan spawnt er dus maar 1 punt vanaf dat de buizen in beeld komen. Maar vanaf dat de vogel 1 punt heeft gepakt, is er dus weer plaats vrij om een nieuw object te spawnen, dus dan doet die dat, dat dus een 20 tot 50 tal keer...

Dus nu moet er gewoon iets gevonden worden op het feit dat het niks meer spawnt als de vogel al iets genomen heeft...
0
Berichten
14.025
Reputatie
1
Punten
0,01
Lid sinds
Laatst gezien
Kan je niet iets makendat je punten krijgt als je tussen bepaalde x-as. en y-as zit?
0
Berichten
11.263
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Dylanh schreef:
Kan je niet iets makendat je punten krijgt als je tussen bepaalde x-as. en y-as zit?
Ik denk dat dat vrijwel onmogelijk is met gamemaker.
0
Berichten
1.863
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik heb nu:

case (int) 2013:
                 include(./fot/2013.php);
            break;


Hoe moet ik dat gebruiken als ik 2013 bij de case (int) wil vervangen door normale letters?
0
Berichten
3.334
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Twany schreef:
Ik heb nu:

case (int) 2013:
                 include(./fot/2013.php);
            break;
Hoe moet ik dat gebruiken als ik 2013 bij de case (int) wil vervangen door normale letters?

(text)?
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
case (string) "Bleeeet":
0
Berichten
1.863
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
test word niet geel (zoals 2011 wel word)
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
strval($value)

of

(string) $value;

Als dat niet werkt ligt het aan iets anders.
0
Berichten
1.863
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Het werkt inmiddels via dit...

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]jaar[/COLOR][COLOR= #007700]])) {[/COLOR]

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700](([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"jaar"[/COLOR][COLOR= #007700]])) &&[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"jaar"[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"2013"[/COLOR][COLOR= #007700]){[/COLOR]
    [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]keuze[/COLOR][COLOR= #007700]])) {[/COLOR]
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700](([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"keuze"[/COLOR][COLOR= #007700]])) &&[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"keuze"[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"lichtstoet"[/COLOR][COLOR= #007700]){[/COLOR]
            [URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]./fot/2013.php[/COLOR][COLOR= #007700];[/COLOR]
            [URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]./fot/2011/lichtstoet.php[/COLOR][COLOR= #007700];[/COLOR]
            [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]();
        }[/COLOR]
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700](([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"keuze"[/COLOR][COLOR= #007700]])) &&[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"keuze"[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"optocht"[/COLOR][COLOR= #007700]){[/COLOR]
            [URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]2015_foto.php[/COLOR][COLOR= #007700];[/COLOR]
            [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]();
        }[/COLOR]
        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]U heeft niet geselecteerd welke fotos u wilt bekijken.<br><br>[/COLOR][COLOR= #007700];
    }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000][/COLOR][COLOR= #007700];
    } 
}[/COLOR]

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700](([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"jaar"[/COLOR][COLOR= #007700]])) &&[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"jaar"[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"2013"[/COLOR][COLOR= #007700]){[/COLOR]
   [URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]./fot/2013.php[/COLOR][COLOR= #007700];[/COLOR]
   [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000][/COLOR][COLOR= #007700]);
}[/COLOR]

[URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]Dit jaartal bestaat niet[/COLOR][COLOR= #007700]);

}[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]

[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Kies uw jaartal...[/COLOR][COLOR= #007700];

}[/COLOR]
?>

yummie
0
Berichten
8.649
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Codeblok (voorbeeld.php):

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23


if(isset($_GET[jaar])) {
if((isset($_GET["jaar"])) && $_GET["jaar"] == "2013"){
if(isset($_GET[keuze])) {
if($_GET["keuze"] == "lichtstoet"){
include ./fot/2013.php;
include ./fot/2011/lichtstoet.php;
}
elseif($_GET["keuze"] == "optocht"){
include 2015_foto.php;
}
else {
echo U heeft niet geselecteerd welke fotos u wilt bekijken.

;
include ./fot/2013.php;
}
}
else {
echo Er is geen keuze meegestuurd.;
}
}
else {
echo Dit jaartal bestaat niet.;
}
}
else {
echo Kies uw jaartal...;
}

?>

groet
0
Berichten
1.863
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hoe kan ik dan een ander jaartal erbij doen
0
Berichten
8.649
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Codeblok (voorbeeld.php):

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28


if(isset($_GET[jaar])) {
switch(trim($_GET["jaar"])){
case
2013:
if(isset($_GET[keuze])) {
if($_GET["keuze"] == "lichtstoet"){
include ./fot/2013.php;
include ./fot/2011/lichtstoet.php;
}
elseif($_GET["keuze"] == "optocht"){
include 2015_foto.php;
}
else {
echo U heeft niet geselecteerd welke fotos u wilt bekijken.

;
include ./fot/2013.php;
}
}
else {
echo Er is geen keuze meegestuurd.;
}

break;
case
2014:
echo Jeej 2014 puh;
break;
default:

echo Dit jaartal bestaat niet.;
break;
}
else {
echo Kies uw jaartal...;
}

?>

groet
0
Berichten
1.863
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
EDIT:
Als ik jouw script gebruik krijg ik witte pagina:
http://customroms.info/tb

de code:

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]jaar[/COLOR][COLOR= #007700]])) {[/COLOR]
    [URL="http://www.php.net/switch"]switch[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/trim"]trim[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"jaar"[/COLOR][COLOR= #007700]])){
        case[/COLOR] [COLOR= #DD0000]2013[/COLOR][COLOR= #007700]:[/COLOR]
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]keuze[/COLOR][COLOR= #007700]])) {[/COLOR]
            [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"keuze"[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"lichtstoet"[/COLOR][COLOR= #007700]){[/COLOR]
                [URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]./fot/2013.php[/COLOR][COLOR= #007700];[/COLOR]
                [URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]./fot/2011/lichtstoet.php[/COLOR][COLOR= #007700];
            }[/COLOR][URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"keuze"[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"optocht"[/COLOR][COLOR= #007700]){[/COLOR]
                [URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]2015_foto.php[/COLOR][COLOR= #007700];
            }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]U heeft niet geselecteerd welke fotos u wilt bekijken.<br><br>[/COLOR][COLOR= #007700];[/COLOR]
                [URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]./fot/2013.php[/COLOR][COLOR= #007700];
            }
        }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Er is geen keuze meegestuurd.[/COLOR][COLOR= #007700];
        }[/COLOR]
        [URL="http://www.php.net/break"]break[/URL][COLOR= #007700];
        case[/COLOR] [COLOR= #DD0000]2014[/COLOR][COLOR= #007700]:[/COLOR]
        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Jeej 2014 :p[/COLOR][COLOR= #007700];[/COLOR]
        [URL="http://www.php.net/break"]break[/URL][COLOR= #007700];
        default:[/COLOR]
        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Dit jaartal bestaat niet.[/COLOR][COLOR= #007700];[/COLOR]
        [URL="http://www.php.net/break"]break[/URL][COLOR= #007700];
}[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Kies uw jaartal...[/COLOR][COLOR= #007700];
}[/COLOR]
?>


de error:

Parse error: syntax error, unexpected T_ELSE in C:xampphtdocstb.php on line 92


Op lijn 92 is:

} else {


De gehele file code:
Spoiler tonen
<!DOCTYPE html>
<html lang="nl">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="shortcut icon" href="favicon.png">

    <title>J.V. t B(r)ouwersgilde: Multimedia</title>

    <!-- Bootstrap core CSS -->
    <link href="css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="css/offcanvas.css" rel="stylesheet">

    <!-- Just for debugging purposes. Dont actually copy this line! -->
    <!--[if lt IE 9]><script src="../../docs-assets/js/ie8-responsive-file-warning.js"></script><![endif]-->

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
      <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
    <![endif]-->
    <script src="js/jquery-1.6.1.min.js" type="text/javascript" charset="utf-8"></script>
    <link href="css/lightbox.css" rel="stylesheet" media="screen" type="text/css" />
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="js/lightbox.js"></script>

  </head>

  <body>
  <div class="navbar navbar-fixed-top navbar-inverse" role="navigation">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">J.V. t B(r)ouwersgilde</a>
        </div>
        <div class="collapse navbar-collapse">
          <ul class="nav navbar-nav">
            <li><a href="/">Home</a></li>
            <li><a href="geschiedenis">Geschiedenis</a></li>
            <li class="active"><a href="media">Multimedia</a></li>
          </ul>
        </div><!-- /.nav-collapse -->
      </div><!-- /.container -->
    </div><!-- /.navbar -->
 <h2><center>Multimedia</center></h2>
    <div class="container"><center>
    Kies een jaar:
<ul class="pager">
<li><a href="media?jaar=2014">2014</a></li>&nbsp;
<li><a href="media?jaar=2013">2013</a></li>&nbsp;
<li><a href="media?jaar=2012">2012</a></li>&nbsp;
<li><a href="media?jaar=2011">2011</a></li>&nbsp;
<li><a href="media?jaar=2010">2010</a></li>&nbsp;
<li><a href="media?jaar=2009">2009</a></li>&nbsp;
</ul>

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]jaar[/COLOR][COLOR= #007700]])) {[/COLOR]
    [URL="http://www.php.net/switch"]switch[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/trim"]trim[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"jaar"[/COLOR][COLOR= #007700]])){
        case[/COLOR] [COLOR= #DD0000]2013[/COLOR][COLOR= #007700]:[/COLOR]
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]keuze[/COLOR][COLOR= #007700]])) {[/COLOR]
            [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"keuze"[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"lichtstoet"[/COLOR][COLOR= #007700]){[/COLOR]
                [URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]./fot/2013.php[/COLOR][COLOR= #007700];[/COLOR]
                [URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]./fot/2011/lichtstoet.php[/COLOR][COLOR= #007700];
            }[/COLOR][URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"keuze"[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"optocht"[/COLOR][COLOR= #007700]){[/COLOR]
                [URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]2015_foto.php[/COLOR][COLOR= #007700];
            }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]U heeft niet geselecteerd welke fotos u wilt bekijken.<br><br>[/COLOR][COLOR= #007700];[/COLOR]
                [URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]./fot/2013.php[/COLOR][COLOR= #007700];
            }
        }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Er is geen keuze meegestuurd.[/COLOR][COLOR= #007700];
        }[/COLOR]
        [URL="http://www.php.net/break"]break[/URL][COLOR= #007700];
        case[/COLOR] [COLOR= #DD0000]2014[/COLOR][COLOR= #007700]:[/COLOR]
        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Jeej 2014 :p[/COLOR][COLOR= #007700];[/COLOR]
        [URL="http://www.php.net/break"]break[/URL][COLOR= #007700];
        default:[/COLOR]
        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Dit jaartal bestaat niet.[/COLOR][COLOR= #007700];[/COLOR]
        [URL="http://www.php.net/break"]break[/URL][COLOR= #007700];
}[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Kies uw jaartal...[/COLOR][COLOR= #007700];
}[/COLOR]
?>
    </center>
      <hr>
      <footer>
        <p>&copy; J.V. t B(r)ouwersgilde 1997-2013 - Gemaakt door <a href="http://twanvanlimpt.nl">Twan van Limpt</a></p>
      </footer>
    </div> <!-- /container -->



    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="js/bootstrap.min.js"></script>
    <script src="js/offcanvas.js"></script>
  </body>
</html>
0
Berichten
8.649
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]jaar[/COLOR][COLOR= #007700]])) {[/COLOR]
    [URL="http://www.php.net/switch"]switch[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/trim"]trim[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"jaar"[/COLOR][COLOR= #007700]])){
        case[/COLOR] [COLOR= #DD0000]2013[/COLOR][COLOR= #007700]:[/COLOR]
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]keuze[/COLOR][COLOR= #007700]])) {[/COLOR]
            [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"keuze"[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"lichtstoet"[/COLOR][COLOR= #007700]){[/COLOR]
                [URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]./fot/2013.php[/COLOR][COLOR= #007700];[/COLOR]
                [URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]./fot/2011/lichtstoet.php[/COLOR][COLOR= #007700];
            }[/COLOR][URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"keuze"[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"optocht"[/COLOR][COLOR= #007700]){[/COLOR]
                [URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]2015_foto.php[/COLOR][COLOR= #007700];
            }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]U heeft niet geselecteerd welke fotos u wilt bekijken.<br><br>[/COLOR][COLOR= #007700];[/COLOR]
                [URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]./fot/2013.php[/COLOR][COLOR= #007700];
            }
        }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Er is geen keuze meegestuurd.[/COLOR][COLOR= #007700];
        }[/COLOR]
        [URL="http://www.php.net/break"]break[/URL][COLOR= #007700];
        case[/COLOR] [COLOR= #DD0000]2014[/COLOR][COLOR= #007700]:[/COLOR]
        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Jeej 2014 :p[/COLOR][COLOR= #007700];[/COLOR]
        [URL="http://www.php.net/break"]break[/URL][COLOR= #007700];
        default:[/COLOR]
        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Dit jaartal bestaat niet.[/COLOR][COLOR= #007700];[/COLOR]
        [URL="http://www.php.net/break"]break[/URL][COLOR= #007700];
    }
}[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Kies uw jaartal...[/COLOR][COLOR= #007700];
}[/COLOR]
?>


Vergeten yummie
0
Berichten
1.863
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Inmiddels opgelost via dit:

case 2013:
            include ./fot/2013.php;
        if(isset($_GET[keuze])) {
            if($_GET["keuze"] == "lichtstoet"){
                include ./fot/2013.php;
                include ./fot/2011/lichtstoet.php;
            }elseif($_GET["keuze"] == "optocht"){
                include 2015_foto.php;
            } else {
                echo U heeft niet geselecteerd welke fotos u wilt bekijken.<br><br>;
                include ./fot/2013.php;
            }
        } else {
            echo Er is geen keuze meegestuurd.;
        }
        break;
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren