I load a table with records from an Oracle query. In each row I place 1 button, when I press it I need to call a PHP function that brings me the content in modal form or in a div to the front (it is only text), and that has a button to close it. The function makes a query for the NUMERO_SOCIO field, which I already have available. I do not know how to link the value of NUMERO_SOCIO with each row of the table and how to use the Onclick event to make the query and show it. Help ? The linked code:
while ($fila = oci_fetch_array($stid, OCI_ASSOC+OCI_RETURN_NULLS)) {
$vsocio=trim($fila['NUM_SOCIO']);
$vfecha=trim($fila['FECHA_HORA']);
$vapellido=trim($fila['APELLIDO']);
$vnombre=trim($fila['NOMBRE']);
echo "<tr>\n";
echo " <td align='center'>" . $vsocio . "</td>\n";
echo " <td align='right'>" . $vfecha . "</td>\n";
echo " <td align='left'>" . substr($vnombre . ", " . $vapellido,0,30) . "</td>\n";
echo " <td align='center'><input type='button' value='Ver' onClick=''></td>\n";
echo "</tr>\n";
}