![lloron](http://static.forosdelweb.com/fdwtheme/images/smilies/chillando.png)
$j=0;
while ($row=mysql_fetch_array($res))
{
$j++;
echo "<tr>";
for ($i = 0; $i<$cant; $i++)
{
$val_s[$j]=$row["".$campo[$i].""];
$campo[$i]=mysql_field_name($res,$i);
if (($z>0 ) && ($campo[$i]=="ip" || $campo[$i]=="os" || $campo[$i]=="browser"))
{
echo '<td><a href=ej_sql2.php3?x='.$x.'&y='.$y.'&z=4&j='.$j.'&w ='.$w.'>'.$val_s[$j].'</a></td>';
}
else
{
echo '<td>'.$val_s[$j].'</td>';
}
}
echo "</tr>";
}
session_register("val_s");
Finalmete tiene que retornar el valor a esta sentecia sql
$val_s[0]=$val_s[0]." and ".$w."='".$val_s[$j]."' ";
//$val_s[0]=$val_s[0]." and ".$w."='".$val_s[$j]."' ";
$sql="select * from ".$sql_det[$x][$y].$val_s[0];
$w="";
Gracias por su ayuda