html>
<link rel="stylesheet" type="text/css" href="stile.css">
<head>
<?php
// Comessione database
mysql_connect("localhost", "root", "marcoprove") or die ("Connessione non riuscita: " . mysql_error());
mysql_select_db("utenti") or die ("Connessione non riuscita: " . mysql_error());

// estrazione dati

$result = mysql_query("SELECT * FROM anagrafica")
or die ("query non eseguita: " . mysql_error());

if(isset($_GET["nome"])){
$sql.=" WHERE nome='".$_GET['nome']."'";
}
while($result = mysql_query($sql)){
echo "miei dati";
}

echo"<table>";
echo "<tr> <th>id</th> <th>Nome</th> <th>Cognome</th> <th>Email</th> </tr>";
// array che raccoglie i risultati
while($row = mysql_fetch_array( $result )) {
// stampa tabella
echo "<tr><th>";
echo $row['id'];
echo "</td><td>";
echo $row['Nome'];
echo "</td><td>";
echo $row['Cognome'];
echo "</td><td>";
echo $row['Email'];

}

?>
</body>
</html>
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in linea 24