Quanto segue è il codice di una pagina del mio sito.
Dovrebbe essere una gestione lista nera.
Si inserisce il nome non consono, si clicca VIETA e il nome si inserisce nella lista sottostante, come premio chi lo ha inserito riceve 5 punti credito.
NIENTE di tutto questo funziona.. come mai ?

Grazie!
Codice PHP:
<?php
session_start
();
require (
"../include/DataBase.php");
require (
"../include/connDB.php");
require (
"../include/commons_parameters.php");
require (
"include/check.php");
require (
"include/check_gestore.php");
require (
"include/up_page.php");

if (
$order == "") { $orders "Nome"; }
if (
$order == "nome") { $orders "Nome"; }
if (
$order == "stabilito") { $orders "AggiuntoDa DESC"; }
if (
$order == "data") { $orders "Data DESC"; }

?>
<table align="center" class="tStaffLight" width="80%">
<tr>
    <td><font class="titleStaff">Nomi Non Consoni o Vietati</font></td>
</tr>
<tr>
    <td align="left">
<?php
if (($_POST['add'] != '')) {

$nomenuovo  $_POST['nomenuovo'];

// AGGIUNGO IL NOME //
$MySql "INSERT INTO nomi_non_consoni (Nome, AggiuntoDa, Data) VALUES ";
$MySql .= "('$nomenuovo', '$ENTRATO', NOW() )"
$Result mysql_query($MySql);
echo 
$MySql;

mysql_query($MySql);
    if (
mysql_affected_rows() == 1) {
    echo 
'[b]<font color=red>NOME AGGIUNTO!</font>[/b]';

#####################################
#####################################
#####################################

// SE VIENE AGGIUNGO MI PRENDO I PUNTI //     
$MySql "SELECT * FROM staff_membri WHERE Nickname = '$ENTRATO' LIMIT 01";
$Result mysql_query($MySql);
$rs mysql_fetch_array($Result);
$crediti $rs["Crediti"];
$rs->close;

$punti_bonus "5";

$totale $crediti $punti_bonus;

$MySql "UPDATE staff_membri SET ";
$MySql .= "Crediti = '$totale' ";
$MySql .= " WHERE Nickname = '$ENTRATO';";
mysql_query($MySql);
// AGGIUNGO IL LOG //
$MySql "INSERT INTO staff_punti (Assegnatore, Punti, Donatore, Azione, Motivazione) VALUES";
$MySql .= "('RebbyFenix','5', '$ENTRATO', 'Aggiunti', 'Aggiunto nome non consono - $nuovonome')"
$Result mysql_query($MySql);
#####################################
#####################################
#####################################
    
    
    
} else {
    echo 
'[b]<font color=red>IMPOSSIBILE AGGIUNGERE IL NOME!</font>[/b]';
    };

// Chiusura Aggiunta Nome
};
?>
<form name="add" action="nomi_non_consoni.php" target="_top" method="post">
<table border="0" width="100%">
<tr>
    <td>
[b]Nome[/b] <input size=30 maxlenght=50 name=nomenuovo value="">
Prima di scrivere un nome controlla che non è già in lista!
 Il doppiaggio del nome potrebbe renderlo di nuovo utilizzabile o addirittura bloccare il modulo iscrizione.
 Fai Attenzione!  </td>
</tr>
<tr>
    <td align="center"><input type="submit" value="VIETA" id="add" name="add"></td>
</tr>
</table>
</form>
    </td>
</tr>
</table>
<hr width="50%">
<table align="center" class="tStaffLight" width="80%">
  <tr>
    <td><font class="titleStaff">Lista [b]Nomi[/b] Vietati</font></td>
  </tr>
  <tr>
    <td align="left"><table border="0" width="50%">
      <tr>
        <td width="10%">[url="?order=assegnatore"][b]Nome non Consono[/b][/url]</td>
        <td width="10%">[url="?order=punti"][b]Stabilito da[/b][/url]</td>
        <td width="10%">[url="?order=ricevitore"][b]in Data[/b][/url]</td>
      </tr>
<?
$MySql 
"SELECT * FROM nomi_non_consoni ORDER BY $orders";
$Result mysql_query($MySql);
if (!(
$rs mysql_fetch_array($Result))) {
?>
      <tr>
        <td width="50%" colspan="3" align="center">[b]NESSUN NOME VIETATO![/b]</td>
      </tr>
<? } else { 
$rs->close;
mysql_free_result($Result);
$Result mysql_query($MySql);
while (
$rs mysql_fetch_array($Result)) {
?>
      <tr>
        <td><?= htmlspecialchars($rs["Nome"]) ?></td>
        <td><?= htmlspecialchars($rs["AggiuntoDa"]) ?></td>
        <td><?= htmlspecialchars($rs["Data"]) ?></td>
      </tr>
      <?
}
$rs->close;
mysql_free_result($Result);
}
?>
    </table></td>
  </tr>
</table>
<?php
require ("../include/down_page.php");
?>