Problème PHP

TanguyBatcher -  
 __construct() -
Bonjour, Php me dit ceci lors de l'execution de ma page:

Parse error: syntax error, unexpected $end in Adresse du Site on line 30

Mais... Comment le résoudre? Merci d'avance.



A voir également:

3 réponses

dariumis Messages postés 571 Date d'inscription   Statut Membre Dernière intervention   63
 
Salut ça veut dire que tu as une erreur de syntaxe, donc soit l'oubli d'un point-vigule, ou d'apostrophe ... Mais dans ton cas vérifie que toutes les accolades soit bien fermé. { }
0
Alex53440
 
Envoi le code de ta page ;)


Alex
0
TanguyBatcher
 
Euh... le code de ma page... x)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
   <head>
       <title>Tadam!</title>
       <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
	   <link rel="icon" type="image/png" href="images/favicon.png" />
	   <link rel="stylesheet" media="screen" type="text/css" title="Style" href="style.css" />
   </head>
   <body style="postion: center;">
		<h2>Allez, entraine-toi !</h2>
		<?php if (!isset($_POST['mdp']) OR !isset ($_POST['pseudo']))
		{ ?>
		<form method="POST" action="lv1.php">
			<p style="postion: center;">
				<input type="text" value="Pseudo" name="pseudo" />  |  <input type="password" value="Mot de passe" name="mdp" />
			</p>
		</form>
		<?php } else {
			if ($_POST['pseudo'] == 'giyufuidfigèè-ééughihfduigidfrgààçà)' AND $_POST['mdp'] == 'gfysuhgfezgfhvgjreygfè_ty_gfè')
			{ ?>
		<script language="javascript" type="text/javascript">
		<!--
		window.location.replace("http://ovnize.free.fr/aventhack/lv2.php");
		-->
		</script>
		<?php } else {
		echo ('Mauvais Identifiants');
		} ?>

</html> <?php $end ?>
0
__construct()
 
		<?php } else {
			if ($_POST['pseudo'] == 'giyufuidfigèè-ééughihfduigidfrgààçà') AND $_POST['mdp'] == 'gfysuhgfezgfhvgjreygfè_ty_gfè')
			{ ?>
0