estoy ke reviso y reviso mi codigo..y nologro encontrar el error.
tengo una pagina donde veo el detalle BConocimiento_sd.php
Código HTML:
//aki envio mis variables <img src="../img/arrow.gif">| <a href="BConocimiento_sd.php?icodBcdet1=<?php echo $icodBcdet ?>&icodBcdet=<?php echo $icodBcdet ?>" target="vistamain">Ver Soluciones </a> </td>
Código PHP:
<!-- FORMULARIO LISTAR DETALLE DE BCONOCMIENTO -->
<?php
$icodBcdet1 = $_GET['icodBcdet1'];
echo "icodBcdet1=".$icodBcdet1; echo " y icodBcdet=".$icodBcdet;
if ($icodBcdet1!="") {
?>
<fieldset class="subtitulo"> <legend>Listado de Soluciónes</legend>
<table width="96%">
<tr>
<td width="7%" class="celda" align="center">Id</td>
<td width="22%" class="celda" align="center" >Nombre</td>
<td width="20%" class="celda" align="center">Fecho de Ingreso</td>
</tr>
<?php
$datos_bcd = get_bcdetalle_s($icodBcdet1);
foreach( $datos_bcd as $fila_bcd ) {
"<tr class=texto_tabla>".
"<td width=7% align=center bgcolor=#B6CFE0 class=campo1>".$fila_bcd["ps_idbcdetalle"]."</td>".
"<td bgcolor=#F0F0F0 class=campo1>".$fila_bcd["vc_nombre"]."</td>".
"<td width=15% align=center bgcolor=#F0F0F0><a href=\"./BConocimiento_sd.php?icodBcdet2=".$fila_bcd["ps_idbcdetalle"]&&"icodBcdet1=".$icodBcdet1."\">".$fila_bcd["dfecha_ingreso"]."</a></td></tr>";
}
?>
</table>
</fieldset>
<?php } ?>
-------------------------------------
LA FUNCION ES:
Código PHP:
/* BCDETALLE*/
function get_bcdetalle_s($icodBcdet1) {
$conexion=con_bdsigesi();
$consulta_bcd=mysql_query("select ps_idbcdetalle,vc_nombre,
DATE_FORMAT(d_fecha_ingreso,'%d-%m-%Y') as dfecha_ingreso,vc_acceso from sgi_bcdetalle
where fs_idbconocimiento=$icodBcdet1",$conexion);
$resultados_bcd = array();
while(($fila_bcd=mysql_fetch_array($consulta_bcd)))
{
$resultados_bcd[] = $fila_bcd;
}
mysql_close($conexion);
return $resultados_bcd;
}
¿ cual pueder ser mi error..?