Hi, i have this code which is a table with login form, history of website and the news.
ths news are here:
<td>
<h2>DESTAQUES</h2>
<table>
<tr>
<td>
<?PHP
include "db_connect.php";
$sql_destaque = "SELECT data_destaque, descricao_destaque FROM destaques ORDER BY cod_destaque DESC LIMIT 4";
$executa=mysql_query($sql_destaque,$connect);
$dados = array();
while ($linha = mysql_fetch_array($executa)) $dados[] = $linha;
mysql_free_result($executa);
function add_imglink($linha)
{
echo '<td width="5%" align="left">';
echo $linha['data_destaque']."<br/>".$linha['descricao_destaque'];
echo '</td>';
}
define('NUMERO_LINHAS', 1);
echo '<table width = 5% height = 45% align = center>';
echo '<ul> <li>';
for ($i = 0; $i < count($dados); $i += NUMERO_LINHAS)
{
echo '<tr>';
for ($lin = 0; $lin < NUMERO_LINHAS; $lin++)
{
if ($i + $lin < count($dados)) add_imglink($dados[$i + $lin]);
}
echo '</li> </ul> ';
echo '</tr>';
}
echo '</table>';
?>
</td>
</tr>
</table>
But i can't do the unordered list as i want. Or some <br/> so i can seperate the news for each other.
Can someone help me?
Thank You,
PF2G