Questo è il frammento di codice php completo, ho provato a togliere la riga che mi dava errore, ma non restituisce nulla... e non capisco perchè...
Codice PHP:
//make the database connection
$conn = mysql_connect("localhost", "root", "");
mysql_select_db("campionato", $conn);
//create a query
$sql = "SELECT giocatore.Id as id, giocatore.Nome as nome, giocatore.Cognome as cognome
FROM
squadra,giocatore
WHERE
squadra.CodiceFip = giocatore.CodiceFip and squadra.Denominazione = 'Basket Manciano'";
$result = mysql_query($sql);
$table = "<table border=\"1\">\n";
$i = 0;
while ($row = mysql_fetch_array($result))
{
$table .= "<tr>\n";
$table .= "<td>\n" . $row['nome'] . "</td>\n";
$table .= "<td>\n" . $row['cognome'] . "</td>\n";
//$table .= "<td>\n<input name=\"giocatori[$i]\" type=\"checkbox\" value=\"$row['id']\"></td>\n";
$table .= "</tr>\n";
$i++;
}
$table = "</table>\n";
echo $table;