How can I insert a block within the greetings by its id
This is what I have entered at the Global Settings of Greetings/Introduction :-
<table width="650" border="0" align="center">
<tr>
<td width="31%" rowspan="2" valign="top" style="padding-left:30; padding-top:5"><img src="images/riche/headerblockimage.gif" width="176" height="118" hspace="5" vspace="5" align="left"/></td>
<td width="2%"> </td>
<td width="67%" class=""><img src="images/riche/arrow.gif" width="11" height="11" /> <strong>
<?php
$host="localhost"; // Host name
$username="root"; // Mysql username
$password=""; // Mysql password
$db_name="v_shop"; // Database name
$tbl_name="va_custom_blocks"; // Table name
// Connect to server and select databse.
mysql_connect("$host", "$username", "$password")or die("cannot connect");
mysql_select_db("$db_name")or die("cannot select DB");
$result = mysql_query("SELECT * FROM $tbl_name WHERE block_id = 2") or die (mysql_error());
while ($row=mysql_fetch_array ($result))
{
echo $row['block_title'];
?>
</strong></td>
</tr>
<tr>
<td> </td>
<td valign="top"><span class="homeGreetings"><br />
<?php
echo $row['block_desc'];
}
?>
</span></td>
</tr>
</table>
The problem is it returns value of the block but goes at the top of the page, but if I enter html characters, it appears within the greeting area.
Please help.