no trae la variable
Publicado por zendi (1058 intervenciones) el 06/06/2014 00:09:21
Necesito que me ayuden con este codigo, no esta trayendo la variable por la url:
y este es lo que trae la url:
no se que pasa, pero honestamente no veo cual es el problema.
Por favor ayudenme.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
$datos=$tra->get_paginacion_noticias($inicio,$c);
if (@pg_num_rows($res)==0)
{
?>
<div id="contenedor">
<table align="center">
<tr>
<td>No hay Registros para ese criterio de busqueda</td>
</tr>
</table></div>
<?php
}else
{
$impresos = 0;
while($req = pg_fetch_array($res))
{
$datos=$tra->get_paginacion_noticias($inicio,$c);
$impresos ++;
?>
<div id="main">
<table border="0" align="left" style="width:100%">
<tr>
<th align="left" style="width:10%" height="10"></th>
<hr>
<?php echo strtolower(str_replace("".$_GET["s"]."","<b>".$_GET["s"]."</b>",$req['detalle'])); ?>
<?php echo Conectar::corta_palabra($datos[$i]['detalle'],200); ?>...
<div id="leer_mas">
<form name="formu" action="lea.php" method="get">
<div id="leer_mas">
<?php echo $texto=str_replace(" ","-",$datos[$i]["detalle"]); ?>
<?php $n = $datos[$i]["id_noticia"];?>
<a href='lea.php?cod=<?php echo $n?>'>Leer más</a>
</div>
</form>
</div>
</td>
</tr>
</table>
<?php
}
}
?>
</div>
1
http://localhost/Clases/lea.php?cod=
Por favor ayudenme.
Valora esta pregunta


0