el código es el siguiente
Código HTML:
Ver original
<html>
<head>
<meta charset="utf-8">
<style type="text/css">
p.simulaLink {color: blue; cursor:pointer;}
</style>
<script type="text/javascript">
function transformarEnEditable(nodo) {
var nodoContent = nodo.querySelectorAll("p");
var claveInicial = nodoContent[0].firstChild.nodeValue;
var nombreInicial = nodoContent[1].firstChild.nodeValue;
var especialidadInicial = nodoContent[2].firstChild.nodeValue;
var consultorioInicial = nodoContent[3].firstChild.nodeValue;
var unidadInicial = nodoContent[4].firstChild.nodeValue;
var cedulaInicial = nodoContent[5].firstChild.nodeValue;
var nuevoCodigo = '<tr>'+
'</tr>';
nodo.innerHTML = nuevoCodigo;
}
</script>
</head>
<body>
<table border="1" cellpadding="0" cellspacing="0">
<tbody>
<tr>
</tr>
<tr>
</tr>
<?php } ?>
</tbody>
</table>
</body>
</html>
Código PHP:
 Ver original
<?php
$conexion = new PDO('mysql:host=localhost;dbname=hospital', 'root', '');
$sql = 'SELECT * FROM doctores';
$result = $conexion->query($sql);
$rows = $result->fetchAll();
?>
<?php
foreach ($rows as $row) {
?>
 
 
 como hacer que al dar clic en guardar se actualice la información
 como hacer que al dar clic en guardar se actualice la información 

