<?php

include ("setup.php");

$comando = "select * from ind_mat where cod_mat =".$cod;
$banco = mysql_select_db($base);

echo '
<table border="0"   cellpading="0" cellspacing="0">';

$sql = "select * from ind_mat where secao = '$s' order by id  ASC";
$result = mysql_query ($sql);
while ( $valor = mysql_fetch_array($result) )
     {
        if($result == TRUE)
        {

echo '
<tr>
<td width=15>

</td>
<td valign=top align=left>

&nbsp;

<font face=Arial size=4 color="#000000">

'.$valor["titulo_01"].'

</font>
<br>

&nbsp;

<font face=Arial size=2 color="#000000"><b>

'.$valor["subtitulo_01"].'

</b></font>

<br>

<table border="0"   cellpading="0" cellspacing="0">
<tr>
<td align=left valign=top>

<'.$valor["link_auto_01"].''.$valor["cod_mat"].'>
<'.$valor["link_alter_01"].''.$valor["url_01"].'>

<img src=images/'.$valor["imagem_01"].'  border=0>

</a>
<br>
<font face=Arial Narrow size=2 color="#000000">

'.$valor["legenda_01"].'

</font>

</td>
<td align=left valign=top>

<font face=Arial Narrow size=3 color="#000000"><b>

'.$valor["titulo_01_dir"].'

</b></font>
<br>
<'.$valor["link_auto_01"].''.$valor["cod_mat"].'>
<'.$valor["link_alter_01"].''.$valor["url_01"].'>
<font face=Arial Narrow size=2 color="#000000">

'.$valor["texto_01_dir"].'

</font>
</a>
</font>

</td>
</tr>
</table>



</td>
<td width="15">
</td>
</tr>';


         }
     }//end while

echo '
</table>';

?>






