Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.
Mostrar Mensajes MenúArray ( [0] => 2 [id_inv] => 2 [1] => Luis [nombre] => Luis [2] => villasenor [ape_pat] => villasenor [3] => Pineda [ape_mat] => Pineda [4] => INAOE [inst] => INAOE [5] => http://ccc.inaoep.mx/~villasen [pag_per] => http://ccc.inaoep.mx/~villasen [6] => [ruta_img] => [7] => 2 [id_usuario] => 2 [8] => zapote [direccion] => zapote )
Array ( [0] => 3 [id_inv] => 3 [1] => Juana [nombre] => Juana [2] => Contreras [ape_pat] => Contreras [3] => Pelaez [ape_mat] => Pelaez [4] => ITP [inst] => ITP [5] => www.facebook.com [pag_per] => www.facebook.com [6] => [ruta_img] => [7] => 1 [id_usuario] => 1 [8] => 13 oriente zapote blanco [direccion] => 13 oriente zapote blanco )
Array ( [0] => 4 [id_inv] => 4 [1] => Carla [nombre] => Carla [2] => Rojas [ape_pat] => Rojas [3] => Pealez [ape_mat] => Pealez [4] => BUAP [inst] => BUAP [5] => www.facebook.com [pag_per] => www.facebook.com [6] => [ruta_img] => [7] => 1 [id_usuario] => 1 [8] => erdvthb [direccion] => erdvthb )
Array ( [0] => 5 [id_inv] => 5 [1] => Pablo [nombre] => Pablo [2] => Cruz [ape_pat] => Cruz [3] => Olivera [ape_mat] => Olivera [4] => UNCO [inst] => UNCO [5] => www.facebook.com [pag_per] => www.facebook.com [6] => [ruta_img] => [7] => 1 [id_usuario] => 1 [8] => xx [direccion] => xx )
Array ( [0] => 7 [id_inv] => 7 [1] => Juana [nombre] => Juana [2] => Peralta [ape_pat] => Peralta [3] => Luna [ape_mat] => Luna [4] => ITP [inst] => ITP [5] => www.facebook.com [pag_per] => www.facebook.com [6] => [ruta_img] => [7] => 2 [id_usuario] => 2 [8] => colonia centro, zapote blanco [direccion] => colonia centro, zapote blanco )
SQL: SELECT * FROM investigador WHERE id_inv='0'
SQL: SELECT * FROM investigador WHERE id_inv='0'
SQL: Resource id #6
<?php
//codigo para mandar a traer todos los nombres de los investigadores que estan almacenados en la base de datos.
$consulta = mysql_query("SELECT *FROM investigador");
echo '<div style="border:2px solid Black;
background : white;
color : skyblue;
padding : 4px;
width : 300px;
height : 100px;
overflow : auto; ">';
while ($row= mysql_fetch_array($consulta)){
echo'<a href="investigadores.php?a=<?php echo'.$row['id_inv'].'?>">'.$row['nombre'].'  '.$row['ape_pat'].'  '.$row['ape_mat'].' <br/> </a>';
}echo'</div>';
?>
<?php
// Formulario2 :codigo para mandar a traer todos datos de un solo investigador al momento que se le de click en el formulario 1(muestra todos los investigadores que estan almacenados en la base de datos).
//id_inv='".$_GET['id_inv']."'"
$id = ((isset($_GET['id_inv']) && strlen($_GET['id_inv'])>0) ? $_GET['id_inv'] : 0);
$consulta2=mysql_query("SELECT * FROM investigador where id_inv='$id'");
while($row=mysql_fetch_array($consulta2)){
echo''.$row['ruta_img'].'';
echo''.$row['nombre'].'  '.$row['ape_pat'].'  '.$row['ape_mat'].' <br/>';
echo''.$row['inst'].'';
echo''.$row['pag_per'].'';
echo''.$row['direccion'].'';
}
?>
<?php
$id=$_GET['id_inv'];
$consulta2=mysql_query("SELECT * FROM investigador where id_inv='$id' '');
while($row=mysql_fetch_object($consulta2)){
echo''.$row['nombre'].'  '.$row['ape_pat'].'  '.$row['ape_mat'].' <br/>';
}
?>
Notice: Undefined index: id_inv in C:\wamp\www\proyecto_redhistal\investigadores.php on line 112