non funziona ancora ecco l'intero codice
Codice PHP:
<?php
//www.pcstile.eu
include 'controllo.php';
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<style type="text/css">
img {
max-width: 150px;
max-height: 150px;
}
</style>
<title>Amministrazione</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<p>Benvenuto <strong><?php echo $row['username']; ?></strong>. <a href="logout.php">Logout</a>
</p>
<p> </p>
<p><strong>PROPRI DATI </strong></p>
<form name="form1" method="post" action="update.php">
<p>Username:
<input name="username" type="text" id="username" value="<?php echo $row['username']; ?>" maxlength="32">
</p>
<p>Password:
<input name="password" type="text" id="password" value="<?php echo $row['password']; ?>" maxlength="32">
</p>
<p>Avatar:
<input name="username" type="text" id="avatar" value="<?php echo $row['avatar']; ?>" maxlength="32">
<?php
echo "<img src=\"$row['avatar']\" alt=\"Image\" class=\"img\" />";
?>
</p>
<p>
<input type="submit" name="Submit" value="Aggiorna">
</p>
</form>
<p><?php
$op = $_GET['op'];
switch($op) {
case(1):
?>
<strong>Profilo Aggiornato con Successo!</strong>
<?php
break;
}
?>
</p>
<p> </p>
</body>
</html>
mi da questo errore
Codice PHP:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /membri/driver22/Registrazione/amministrazione.php on line 32