Miren deseo hacer lo siguiente
un listado de mis usuarios con nombre y apellido pero con un icomo k cuando se le de clic muestre el detalle de cada usuario. lo probe solo en htm y si funciona pero cuando lo puse para php no me muestra, lo k trato es darle a cada funcion un numero, en este caso los numeros de ID de cada usuario.
Hber si le dan un

Código PHP:
<script >
function fMostrarDetalle(e){
if(document.all[e].style.display == "none"){
document.all[e].style.display="";
}else{
document.all[e].style.display="none";
}
}
</script>
<table width="450" border="1" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="44"> </td>
<td width="231">Nombre</td>
<td width="153">Apellido</td>
</tr>
<?php
require_once('../conexion/conectar.php');
$result=mysql_query("SELECT * FROM `expositores` ORDER BY `idexpo` DESC", $dbh);
while($row = mysql_fetch_array($result))
{
echo' <tr>';
echo' <td height="26"><table width="0" height="0" border="0" cellpadding="3" cellspacing="0">';
echo' <tr>';
echo' <td><img src="../imagenes/ico/persona.png" width="16" height="17"></td>';
//antes era = javascript:fMostrarDetalle('fe') pero kiero k tenga el valor del id. al =k el <tr>donde se mostrara el detalle de los usuarios
echo' <td><a href="javascript:fMostrarDetalle('.$row["id"].');"><img src="../imagenes/ico/flechaDetalle1.gif" width="12" height="12" border="0"></a></td>'; //a este tr kiero darle el ID de mi tabla
echo' </tr>';
echo' </table></td>';
echo' <td>'.$row["nombre"].'</td>';
echo' <td>'.$row["stand"].'</td>';
echo' </tr>';
// antes era id="f2"
echo' <tr id='.$row["id"].' style="display:none;">';// a este tr kiero darle el ID de mi tabla
echo' <td>-</td>';
echo' <td colspan="2">'.$row["detalle"].'</td>';
echo' </tr>';
echo' <tr>';
echo' <td> </td>';
echo' <td> </td>';
echo' <td> </td>';
echo' </tr>';
}
mysql_free_result($result);
mysql_close($dbh);
?>
</table>
Espero haberme explicado bien
