Ciao  a tutti ho un problema con questo codice che non mi mostra l'immagine. mi esce solo fuori del codice.
	
	
	
		
				
			
		PHP:
	
	<html>
    <body>
    <form method="post" enctype="multipart/form-data">
    <br/>
    <input type="file" name="image" />
    <br/><br/>
    <input type="submit" name="sumit" value="upload">
    </form>
<html>
<head>
<title>Recuperare i dati da un DB MySQL</title>
</head>
<body>
 <?php
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "foto";
// Create connection
$conn = mysqli_connect($servername, $username, $password, $dbname);
// Check connection
if (!$conn) {
    die("Connection failed: " . mysqli_connect_error());
}
$sql = "SELECT id, image,created FROM images";
$result = mysqli_query($conn, $sql);
if (mysqli_num_rows($result) > 0) {
    // output data of each row
    while($row = mysqli_fetch_assoc($result)) {
        echo "<img src=".$row["image"].".jpg\" width=\"200px\" height=\"200px\"";
    }
} else {
    echo "0 results";
}
mysqli_close($conn);
?>
</body>
</html>
	
			
				Ultima modifica di un moderatore: