i have setup phemplate for my website and am very pleased but i coded a few things and they work thats a first but when i put them on the page it dont work.. this is portion of code:
<tr>
<td background="images/site/block_top.jpg" width="155" height="28" style="color: #FFFFCC"><center>
Affiliates</center>
</td>
</tr>
<tr>
<td width="155" height="19" bgcolor="#021803" background="images/site/block_bg.jpg">
<?php $rs = mysql_connect( "localhost", "MY USER", "MY PASS" );
$rs = mysql_select_db( "nova-zone" );
// Sql query for entries//
$sql = "select * from affiliates order by affname desc limit 10";
$rs = mysql_query( $sql);
//loop through records writeing a bullet for each//
while ( $row = mysql_fetch_array( $rs ) )
{
?>
<li><a href='<?php echo $row["affurl"]; ?>'><?php echo $row["affname"]; ?></a></li>
<?php } ?>
</td>
</tr>
<tr>
<td width="155" height="10" background="images/site/block_bottom.jpg"></td>
</tr>
</table>
thats the affiliates block on my site... when the code is there it dont work.. now if i put the code by itself it works fine..
EX:
<?php $rs = mysql_connect( "localhost", "MY USER", "MY PASS" );
$rs = mysql_select_db( "nova-zone" );
// Sql query for entries//
$sql = "select * from affiliates order by affname desc limit 10";
$rs = mysql_query( $sql);
//loop through records writeing a bullet for each//
while ( $row = mysql_fetch_array( $rs ) )
{
?>
<li><a href='<?php echo $row["affurl"]; ?>'><?php echo $row["affname"]; ?></a></li>
<?php } ?>
that works.
a have some other codes that dont work ether..
i have asked around but no one i know knows whats wrong...
Thanks in advance