Código PHP:
<?
//Include database connection details
require_once('config.php');
//Array to store validation errors
$errmsg_arr = array();
//Validation error flag
$errflag = false;
//Connect to mysql server
$link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD);
if(!$link) {
die('Failed to connect to server: ' . mysql_error());
}
//Select database
$db = mysql_select_db(DB_DATABASE);
//if(!$db) {
// die("Unable to select database");
//}
$id = $_GET['id'];
$qry="SELECT * FROM members WHERE id='$id'";
$result = mysql_query($qry);
$row = mysql_fetch_assoc($result);
?></div>
</div>
<br />
<div class="select-bar">
<label></label>
<label></label>
</div>
<div class="table"></div>
<div class="table">
<table class="listing" cellpadding="0" cellspacing="0">
<tr>
<th class="first" width="177">Datos de Informacion </th>
<th> </th>
<th> </th>
<th> </th>
<th> </th>
<th> </th>
<th> </th>
<th class="last"> </th>
</tr>
<tr>
<td class="first style1 Estilo1">Apellido: </td>
<td> </td>
<td colspan="5"><? echo $row['firstname'] ?></td>
<td class="last"> </td>
</tr>
<tr>
<td class="first style1 Estilo1">Nombre:</td>
<td> </td>
<td colspan="5"><? echo $row['lastname'] ?></td>
<td class="last"> </td>
</tr>
<tr>
<td class="first style1 Estilo1">Email:</td>
<td> </td>
<td colspan="5"><? echo $row['mail'] ?></td>
<td class="last"> </td>
</tr>
<tr>
<td class="first style1 Estilo1">Nivel:</td>
<td> </td>
<td colspan="5"><? echo $row['nivel'] ?></td>
<td class="last"> </td>
</tr><tr>
<td class="first style1 Estilo1">Rol:</td>
<td> </td>
<td colspan="5"><? echo $row['rol'] ?></td>
<td class="last"> </td>
</tr>
</table>
Saludos ygracias a quien pueda ayudarme