hi!
<?php
// PN ist die Bildnummer (PictureNumber)
// B ist die Bewegung (V für Vor, Z für Zurück)
// A ist der Alte PN-wertif ($PN < 1 )
{$PN = 1; }$PN = $A
^^
# Da hast du das Semikolon vergessen
if ($B = "Rückwärts" )
{$PN = $A + 1; }if ($B = "Vorwärts" )
{$PN = $A - 1; }if ($PN < 10 )
{$PN = "0"."$PN"; }if ($PN > 20 )
{$PN = 1; }PRINT "<html>
<head>
<title>Fotos</title><link rel="stylesheet" type="text/css" href="../CSS/style.css">
<link rel="stylesheet" type="text/css" href="../CSS/txt.css"><script type="text/javascript" src="../JS/status.js"></script>
</head><body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" class=bodycontent>
<table border="0" width=100% height=100% CELLPADDING="0" CELLSPACING="0">
<tr>
<td colspan="2">
<div align="center">
<img src="../PICTURES/c_020/c_0201/c_0201_$PN.jpg" border="0">
</div>
</td>
</tr>
<tr>
<td width=50% align="center">
<FORM ACTION="c_0201.php" METHOD="POST">
<input type="submit" name="B" value="Rückwärts">
</FORM>
</td>
<td width=50% align="center">
<FORM ACTION="c_0201.php" METHOD="POST">
<input type="submit" name="B" value="Vorwärts">
</FORM>
</td>
</tr>
</table>
</body>
</html>";?>
lg
azok
Murphys Law: "Alles Schöne im Leben ist entweder illegal, ungesetzlich oder es macht dick."
Selfcode: ie:% fl:( br:> va:) ls:& fo:) rl:( n4:° ss:| de:] js:| ch:( sh:) mo:) zu:)