Re: Insertar htm cada 3 ejecuciones

From: Date: Tue, 29 Apr 2003 22:33:19 +0000
Subject: Re: Insertar htm cada 3 ejecuciones
References: 1 2  Groups: php.general.es 
Request: Send a blank email to general-es+get-35654@lists.php.net to get a copy of this message
if ($i%3==0)echo "<tr>"; ----- Original Message ----- From: "Rama Gonzalo" <ramagonzalo@yahoo.com.ar> To: <lista@phpes.com> Sent: Tuesday, April 29, 2003 9:45 PM Subject: [PHP-ES] Insertar htm cada 3 ejecuciones > Hola a todos, necesito insertar <TR> cada tres ejecuciones del bucle y > continuar con la ejecución del mismo. > > $q = mysql_query("SELECT * FROM st_links WHERE catid='17' ORDER BY rand() > LIMIT 9"); > while($result2 = mysql_fetch_array($q)){ > $linkid = $result2["linkid"]; > $des = $result2["des"]; > $catid = $result2["catid"]; > $url = $result2["url"]; > eval("\$catslink = > \"".fetchtemplate('cats_links')."\";"); echo > "$catslink";} > > en total se jecuta 9 veces, o sea necesito insertar 3 <tr> > > SAludos! > > > --------------------------------------------------------------------- > 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 (#35654) next »