estoy haciendo un foro y he puesto un link a index.php?secc=lista?cat=1
osea te muestra una lista con los msg en la categoria uno y luego hago esto:
Código PHP:
<table width="500" border="1" cellspacing="0" align="center">
<?
$sql_tiee="SELECT * FROM foro WHERE categoria='$cat'";
$rs_ti=mysql_query($sql_tiee)or die (mysql_error());
$rows=mysql_fetch_array($rs_ti);
?> <tr>
<td width="450"><strong><font color="#FFCC00"> </font></strong>
<table width="420" border="0" cellspacing="0" align="center">
<tr>
<td><strong><font color="#FFCC00">
<? echo "<a href='index.php?secc=ver&id_not=".$rows['id']."'>".$rows['titulo']."</a>"; ?>
</font></strong></td>
</tr>
</table>
</td>
<td width="50"><font color="#FFCC00">
<? echo " ".$rows['respuestas']; ?>
</font></strong></td>
<td> </td>
</tr><? ?>
</table>
El problema sq solo me muestra el 1º de todos