aqui los archivos
Código PHP:
public function Listar_Persona_Nombre($tabla,$nombre){
$sql = "Select * from ".$tabla." where nombre ='".$nombre."';";
$this->conexion=new Mysql_conection();
$this->conexion->conectar();
$result=$this->conexion->ejecutar_sql($sql);
$num=mysql_num_rows($rst);
if(mysql_num_rows($rst)>0){
$mostrar="<form action='' method='post'>";
$mostrar.= "<center><table border=1 bgcolor=#CCCCCC><th>nombre<th>apellido";
$cont=1;
while($fila=mysql_fetch_array($rst) ){
$mostrar.= "<tr><td>".$fila[0]."</td><td>".$fila[1]."</td><td></tr>";
$cont++;
}//end while
$mostrar.="</center></table></form><br><center>Se encontraron $num registros</center>";
}else{
$mostrar="No se encontraron Registros en la BD";
}
$this->conexion->desconectar($rst);
return $mostrar;
}

