buongiorno a tutti e grazie in anticipo, ho il seguente problema:
ho creato un db con i seguenti campi : nome, cognome, email
quando recupero i dati ho impostato nel ciclo while un campo checkbox per ogni riga quindi per essere più chiaro avrò:
vorrei aggiungere ad un secondo database solo le email che hanno il campo checkbox spuntato!!! come faccio???while (($row_data = @$result->fetch_assoc())!== NULL)
echo <<<LELE
<table>
<tr>
<td width="20px" align="center"> {$row_data['tessera']} </td>
<td width="168px"> {$row_data['nome']} </td>
<td width="168px">{$row_data['cognome']}</td>
<td width="80px" align="center">{$row_data['telefono']}</td>
<td width="60px" align="center">{$row_data['cellulare']}</td>
<td width="150px"><input type="text" name="email" value="{$row_data['email']}" /> </td>
<td width="20px"> <input type="checkbox" name="selezione" /></td>
</tr>
</table>
LELE;
$result->close();
$conn->close();
vi prego aiutatemi![]()