I have a table with fetched data from the database.
I need a way to, by clicking on a specific cell, make the content on that cell editable and then save it into the database.
Here is my code:
<table cellspacing="0" id="tabela1">
<tr><th>Data</th><th>Empresa</th><th>Função / Descrição</th></tr>
<tbody>
<?php
while ($pptable = mysql_fetch_array($pp, MYSQL_ASSOC))
{
$ppdata=$pptable['data'];
$ppemp=$pptable['empresa'];
$ppdesc=$pptable['descricao'];
foreach ($pptable as $ppdata){
echo "<tr><td>".$ppdata."</td><td>".$ppemp."</td><td>".$ppdesc."</td></tr>";
}
}
?>
</tbody>
</table>
Thanks !