RE: [PHP-ES] Fw: NECESITO AYUDA URGENTE!!!

From: Date: Tue, 09 Sep 2003 08:59:43 +0000
Subject: RE: [PHP-ES] Fw: NECESITO AYUDA URGENTE!!!
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-40205@lists.php.net to get a copy of this message
Hola, En la función que envías el return lo colocas "fuera" de la funcion. En cuanto a que te imprima el código, en el archivo que incluyes con la función... ¿ colocas los tags <?php y ?> ? Un Saludo. __________________________________________________ Jose Antonio Rios EasySQL - http://www.easysql.net La Base de Datos online CiberBell - http://www.ciberbell.net Web de noticias tecnológicas TheWebAnimals, S.L. - http://www.thewebanimals.com Dominios, Hosting, diseño web... __________________________________________________ -----Original Message----- From: Centro Municipal de Información de Ciencias Médicas [mailto:infocot@infomed.sld.cu] Sent: lunes, 08 de septiembre de 2003 21:47 To: lista@phpes.com Ok, aquí te va el script <html> <head> <meta http-equiv="Content-Language" content="es"> <meta name="GENERATOR" content="Microsoft FrontPage 5.0"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>Fotos</title> </head> <body> <p>Fotos</p> <hr> <? { if (isset($foto)) { switch($foto) { case 0: echo makeHTML(0,0,1); break; case 1: echo makeHTML(1,0,2); break; .... la función: function MakeHTML($number,$previous,$next) { $strHTML="<table align=\"center\" border=\"1\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#111111\" width=\"30%\">"; $strHTML.="<tr><p>"; $strHTML.="<td width=\"100%\">"; $strHTML.="<img border=\"0\" src=%22images/Fiesta_RMs/foto%22.$number.%22.JPG/%22 width=\"271\" height=\"207\"></td>"; $strHTML.="</tr>"; $strHTML.="</table>"; $strHTML.="<hr>"; $strHTML.="<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">"; $strHTML.="<tr>"; $strHTML.="<td width=\"14%\">"; if ($previous==0) { if ($number==0) { $strHTML.="<p align=\"center\">Anterior</td>"; $strHTML.="<td width=\"73%\">&nbsp;</td>"; $strHTML.="<td width=\"13%\">"; $strHTML.="<p align=\"center\"><a href=".<? echo $SERVER[PHP_SELF]?>."?foto=".$next.">Próxima</a></td>"; $strHTML.="</tr>"; $strHTML.="</table>"; } else { $strHTML.="<a href=".<? echo $SERVER['PHP_SELF']?>."?foto=1>Anterior</td>"; $strHTML.="<td width=\"73%\">&nbsp;</td>"; $strHTML.="<td width=\"13%\">"; $strHTML.="<p align=\"center\"><a href=".<? echo $SERVER[PHP_SELF]?>."?foto=".$next.">Próxima</a></td>"; $strHTML.="</tr>"; $strHTML.="</table>"; } } else { $strHTML.="<p align=\"center\">"; $strHTML.="<a href=".<? echo $SERVER['PHP_SELF']?>."?foto=".$previous.">Anterior</td>"; $strHTML.="<td width=\"73%\">&nbsp;</td>"; $strHTML.="<td width=\"13%\">"; $strHTML.="<p align=\"center\"><a href=".<? echo $SERVER['PHP_SELF']?>."?foto=".$next.">Próxima</a></td>"; $strHTML.="</tr>"; $strHTML.="</table>"; } } return($strHTML) Paradix ;) ----- Original Message ----- From: "Borja Martín" <borjam@dagi3d.net> To: <lista@phpes.com> Sent: Monday, September 08, 2003 3:52 PM Subject: Re: [PHP-ES] Fw: NECESITO AYUDA URGENTE!!! > podrias enviar el mensaje en texto plano sin html? me resulto > imposible leer la parte del script. > > Saludos. > > At 15:04 08/09/2003 -0400, you wrote: > > >se me olvidaba, el host donde tengo puesto script usa PHP 4.1.2 > > > >Salu2 > > > >Paradix ;) > > > > > --------------------------------------------------------------------- > Archivo On-line: http://www.phpes.com/ via > news: > news://news.phpes.com/ Manual PHP en español: > http://www.php.net/manual/es/ Para dar de baja la suscripción, > mande > un mensaje a: > lista-unsubscribe@phpes.com --------------------------------------------------------------------- Archivo On-line: http://www.phpes.com/ via news: news://news.phpes.com/ Manual PHP en español: http://www.php.net/manual/es/ Para dar de baja la suscripción, mande un mensaje a: lista-unsubscribe@phpes.com

« previous php.general.es (#40205) next »