veran.. yo tengo todas las noticias agregadas en una base de datos.. asi q cuando quiero leerlas uso este php.
Código PHP:
<? $qmnews = @mysql_query("SELECT * FROM gbnoticias");
while ($mnews = mysql_fetch_array($qmnews)){
if ($_GET["noticeid"]==$mnews["Id"]){
echo('<TABLE cellSpacing=0 cellPadding=0 width=665
border=0>
<TBODY>
<TR>
<TD align=right bgColor=#417f05 height=33>
<TABLE class=text2 cellSpacing=0 cellPadding=0
width=658 border=0>
<TBODY>
<TR>
<TD width=36>Título</TD>
<TD colSpan=2>: <img src="modulo_general/TeamService/images/main/'.$mnews["clase"].'.gif"> <STRONG><B>'.$mnews["Title"].'
<!--Aki el titulo de la noticia--></B></STRONG></TD>
</TR>
<TR>
<TD width=36>Fecha</TD>
<TD width=124>: '.date("d-m-Y",strtotime($mnews["Date"])).'<!--Aki la fecha de la noticia--></TD>
<TD width=498>Cuenta :
'.$mnews["Author"].'</TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD align=middle>
<TABLE class=text1 cellSpacing=0 cellPadding=0
width=651 border=0>
<TBODY>
<TR>
<TD> </TD>
</TR>
<TR>
<TD><div align="center"><img src="modulo_general/TeamService/images/modules/news/log.jpg"></div></TD></TR>
<TR>
<TD> </TD>
</TR>
<TR>
<TD>'.$mnews["Text"].'<!--aki la noticia--></TD></TR>
<TR>
<TD> </TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD background=""><IMG height=1 src=""
width=2></TD></TR>
<TR>
<TD align=right> </TD></TR></TBODY></TABLE>');
}
} ?>
todo va bien lee la noticia q sea por id.. por ejemplo si la noticia 15 quiero q vean poes entraran a
http://localhost/main.aspx?mod=1&mod...news¬iceid=15
si es 17
http://localhost/main.aspx?mod=1&mod...news¬iceid=17
listo el problema se genera cuando quiere leer imgs ejemplo puse una imagen.. y sale asi.. :

vi su vinculo y sale esto :
http://localhost/%22../modulo_genera..._Login.gif/%22
ahora cuando yo uso un php q es de una pagina antigua .. q se convoca las noticias algo asi
http://localhost/noticeid-commets-17.html
lee las imagenes ... pero claro q esto no es compatible con mi web .. revise algunos puntos de la web y agrege esto :
Código PHP:
if ($_GET["noticeid"]==$mnews["Id"]){
$newT = stripslashes($mnews['Text']);
$newT = '<br><a href=\'#\' onclick="document.getElementById(\'the_text\').style.display =\'\';"> [Read More]</a><span id="test" style="display:none;"> hellow </span><div id="the_text" style="display:none;"><table><tr><td>'.$newT.'</td></tr></table></div>';
$mnews['Text'] = stripslashes($mnews['Text']) . $newT;
} else {
}
quedando el php asi :
Código PHP:
<? $qmnews = @mysql_query("SELECT * FROM gbnoticias");
while ($mnews = mysql_fetch_array($qmnews)){
if ($_GET["noticeid"]==$mnews["Id"]){
$newT = stripslashes($mnews['Text']);
$newT = '<br><a href=\'#\' onclick="document.getElementById(\'the_text\').style.display =\'\';"> [Read More]</a><span id="test" style="display:none;"> hellow </span><div id="the_text" style="display:none;"><table><tr><td>'.$newT.'</td></tr></table></div>';
$mnews['Text'] = stripslashes($mnews['Text']) . $newT;
} else {
}
echo('<TABLE cellSpacing=0 cellPadding=0 width=665
border=0>
<TBODY>
<TR>
<TD align=right bgColor=#417f05 height=33>
<TABLE class=text2 cellSpacing=0 cellPadding=0
width=658 border=0>
<TBODY>
<TR>
<TD width=36>Título</TD>
<TD colSpan=2>: <img src="modulo_general/TeamService/images/main/'.$mnews["clase"].'.gif"> <STRONG><B>'.$mnews["Title"].'
<!--Aki el titulo de la noticia--></B></STRONG></TD>
</TR>
<TR>
<TD width=36>Fecha</TD>
<TD width=124>: '.date("d-m-Y",strtotime($mnews["Date"])).'<!--Aki la fecha de la noticia--></TD>
<TD width=498>Cuenta :
'.$mnews["Author"].'</TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD align=middle>
<TABLE class=text1 cellSpacing=0 cellPadding=0
width=651 border=0>
<TBODY>
<TR>
<TD> </TD>
</TR>
<TR>
<TD><div align="center"><img src="modulo_general/TeamService/images/modules/news/log.jpg"></div></TD></TR>
<TR>
<TD> </TD>
</TR>
<TR>
<TD>'.$mnews["Text"].'<!--aki la noticia--></TD></TR>
<TR>
<TD> </TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD background=""><IMG height=1 src=""
width=2></TD></TR>
<TR>
<TD align=right> </TD></TR></TBODY></TABLE>');
} ?>
y si salen las imagenes :P correctamente se pueden visualizar.. pero el problema ahora es este miren :

todas las noticias se convocan en un solo php y apesar q especifique que noticia querio ver salen todos .. :S! alguien me puede ayudar porfavor ?? solo quiero q se convoque uno como en el primer php ... en que estoy haciendo mal..
se lo agradesco de antemano