salve a tutti, ho un problema che non riesco a risolvere con questa parte dello script:
Codice PHP:
<div id="tables">
<table align="center" width="80%" cellspacing="0" cellpadding="0">
<tr>
<th class="top">[b] Username[/b]</th>
<th class="top">[b] Paese[/b]</th>
<th class="top">[b] Referral da †[/b]</th>
<th class="top">[b] Ultimo Click[/b]</th>
<th class="top">[b] Click[/b]</th>
<th class="top">[b] [COLOR=red]Cancella[/COLOR] [/b]</th>
</tr>
<?
require('config.php');
$lole=$_COOKIE["usNick"];
$tabla = mysql_query("SELECT * FROM tb_users where referer='$lole' ORDER BY id ASC"); // selecciono todos los registros de la tabla usuarios, ordenado por nombre
mysql_close($con);
while ($row = mysql_fetch_array($tabla)) { // comienza un bucle que leera todos los registros y ejecutara las ordenes que siguen
echo "<tr><td align='left'> ";
echo $row["username"];
echo "</td><td align='left'> ";
echo $row["country"];
echo "</td><td align='left'> ";
echo date("d/m/Y H:i", $row["joindate"]);
echo "</td><td align='left'> ";
echo date("d/m/Y", $row["lastlogdate"]);
echo "</td><td align='right'>";
echo $row["visits"];
echo "</td><td align='right'>";
Bottone che Cancella il referente.
echo "</td></tr>";
}
echo "</table>";
?>
</div>
la tabella si completa con tutti i riferenti di un utente...
il problema è che non riesco ad usare la funzione Cancella, che dovrebbe cancellare quel referente, in pratica nel record referer dovrebbe lasciare campo vuoto cosi quel utente non è più referente.
chi mi sa aiutare
grazie