tengo otra duda.... ire directo al grano, tengo una base de dato en donde una tabla tiene:
Código:
y lo que pretendo es que me muestre si el usuario tiene 5 cursos, 5 institucion, 5 pais.... etc. y solo me muestra el primero de la base de datos, quiero que en mi pagina muestre todo los cursos de especializacion que tiene el usuario al ingresar en la base de datos...USERNAME varchar(20) PRI select,insert,update,references CODCURRICULUM varchar(20) PRI select,insert,update,references ID_ESPECIALIZACION varchar(20) PRI select,insert,update,references CURSO varchar(120) YES (NULL) select,insert,update,references INSTITUCION varchar(255) YES (NULL) select,insert,update,references PAIS varchar(80) YES (NULL) select,insert,update,references CIUDAD varchar(50) YES (NULL) select,insert,update,references ANOREALIZACION varchar(4) YES (NULL) select,insert,update,references DURACION varchar(120) YES
en mi pagina tengo esto:
Código PHP:
$sql7="Select curso_especializacion.curso, curso_especializacion.anorealizacion, curso_especializacion.pais, curso_especializacion.institucion, curso_especializacion.ciudad from curso_especializacion, curriculum,profesor, usuario where curso_especializacion.username=curriculum.username and curso_especializacion.codcurriculum=curriculum.codcurriculum and curriculum.username=profesor.username and profesor.username=usuario.username and usuario.username='".$username."'";
$rs7=$db->Execute($sql7);
$cursoespe=$rs7->fields("curso");
$ciudadespe=$rs7->fields("ciudad");
$paisespe=$rs7->fields("pais");
$institucionespe=$rs7->fields("institucion");
$anoespe=$rs7->fields("anorealizacion");
Código PHP:
<table width="90%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="9%">Curso: </td>
<td width="31%">'.$cursoespe.'</td>
<td width="60%" colspan="2">Institución: '.$institucionespe.'</td>
</tr>
<tr>
<td>Ciudad:</td>
<td>'.$ciudadespe.'</td>
<td colspan="2">Año de Realización: '.$anoespe.'</td>
</tr>
<tr>
<td colspan="4">Pais: '.$paisespe.'</td>
</tr>
</table>
esos quiero mostrar tambien y no solo uno.....
salu2
![Pensando](http://static.forosdelweb.com/fdwtheme/images/smilies/scratchchin.gif)