Ver Mensaje Individual
  #2 (permalink)  
Antiguo 10/08/2008, 14:01
komodo
 
Fecha de Ingreso: noviembre-2006
Mensajes: 437
Antigüedad: 17 años, 5 meses
Puntos: 3
Respuesta: Extraño problema con un bucle

Hola Riwer. Prueba asi:

Cita:

<?php
$conexion=mysql_connect("");
mysql_select_db("riwer_web",$conexion);

$letra = $_REQUEST['letra'];
$sql="SELECT topic_title FROM ip_topics WHERE topic_title LIKE '[DD] " . $letra . "%' and forum_id = '35' and topic_id not in (493) ORDER BY topic_title" ;
$resul=mysql_query($sql);
$numero=mysql_num_rows($resul);


echo "<center> Prueba de letra: " . $letra . "</center>";
echo "<table align='center' width='100%'>";
while($registro = mysql_fetch_array($resul)){
echo "<tr>";
echo "<td>$registro[topic_title]</td>";
echo "</tr>";
}

echo "</table>"


?>
Un saludo!