-  <?php
-  session_start();
-  include ("database/database.php")
-  ?>
-  <!DOCTYPE HTML>
-  <html xmlns="http://www.w3.org/ (...)
-  <head>
-  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-  <link rel="stylesheet" type="text/css" href="style/style.css">
-  <title>Admin Login</title>
-  </head>
-  <body>
-  <div id="wrapper">
-  <h1><a href="admin.php">Admin login</a></h1>
-      <div id="menu">
-      <ul>
-                      <?php
-                          $result = mysql_query("SELECT * FROM katogori");
-                          while($row = mysql_fetch_array($result))
-                          {
-                              echo "<li>" . "<a href='admin.php?infomation=$row[id]'>$row[katogori]</a>" . "</li>";
-                          }
-                      ?>
-                      <li><a href="slet.php">Slet Billeder</a></li>
-                      <li><a href="logud.php">Log ud</a></li>
-      </ul>
-      </div>
-      <?php
-      $result = mysql_query("INSERT INTO billeder(navn, fk_katogori) VALUES ('$navn', '$hiddenField');
-      ?>
-      <?php
-      if (!empty($_GET) && $_GET['infomation'] == 1) {
-          echo "
-        <form action='admin.php' method='post'>
-              <input name='navn' type='text'>
-              <input type='hidden' name='hiddenField' id='hiddenField' value='" . $_GET['infomation'] . "'>
-      <input type='submit' type="'text' value='Upload'>            
-      </form>
-      ";
-      }
-      ?>
-  
-  
-  
-  </div>
-  </body>
-  </html>
Den siger ; 
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\xampp\htdocs\galleri\admin\admin.php on line 32
						
						
						
						
		
							Indlæg senest redigeret d. 04.01.2012 19:25 af Bruger #16353