toplisek
03-16-2006, 10:32 AM
I need help with PHP code.
How to read in right format (from table on server) if there is content on server and when user clicks on news link, it will show ali content (each news will have its own ID number
I have format for HTML code and PHP code:
<!-- Table News -->
<table cellspacing="0" cellpadding="0" border="0" class="news_field">
<tr>
<td valign="top" class="news_headline"><b>News</b></td>
</tr>
<tr>
<td valign="top" class="text1">
<?PHP
// <!--Start News1 -->
echo '<table border="0" cellspacing="0" cellpadding="0">';
echo'<tr>';
echo '<td colspan=4><IMG alt="" border="0" width="1" height="1" hspace="0" src="images/image12.gif"></td>
</tr>';
echo '<tr>';
echo '<td width="60" align="left" valign="top" nowrap class="news_content1a">';
echo '<a href="" class="news_content1a">11.10.2005:</a></span><br></td>';
echo '<td width="5" align="left" valign="middle"><IMG alt="" border="0" width="3" height="1" hspace="0" src="images/image12.gif"></td>';
echo '<td width="100%" align="left" valign="top">';
echo '<span class="news_content1a">News Source1</span><br>';
echo '<span class="news_content2a">News Headline1</span><br><br></td>';
echo '</tr>';
echo '</table>';
/* <!-- End News1 -->
<!--Start News2 --> */
echo '<table border="0" cellspacing="0" cellpadding="0">';
echo'<tr>';
echo '<td colspan=4><IMG alt="" border="0" width="1" height="1" hspace="0" src="images/image12.gif"></td>
</tr>';
echo '<tr>';
echo '<td width="60" align="left" valign="top" nowrap class="news_content1a">';
echo '<a href="" class="news_content1a">11.10.2005:</a></span><br></td>';
echo '<td width="5" align="left" valign="middle"><IMG alt="" border="0" width="3" height="1" hspace="0" src="images/image12.gif"></td>';
echo '<td width="100%" align="left" valign="top">';
echo '<span class="news_content1a">News Source2</span><br>';
echo '<span class="news_content2a">News Headline2</span><br><br></td>';
echo '</tr>';
echo '</table>';
/* <!-- End News2 -->
echo '</td></tr>';
echo ' </table>';
echo '<table>';
echo '<tr>';
echo '<td ><span class="text3"><b>News</b> more</span>';
echo '</a>';
echo '</td></tr>';
echo '</table>';
Need help. It is difficult question, but I hope you can help.
How to read in right format (from table on server) if there is content on server and when user clicks on news link, it will show ali content (each news will have its own ID number
I have format for HTML code and PHP code:
<!-- Table News -->
<table cellspacing="0" cellpadding="0" border="0" class="news_field">
<tr>
<td valign="top" class="news_headline"><b>News</b></td>
</tr>
<tr>
<td valign="top" class="text1">
<?PHP
// <!--Start News1 -->
echo '<table border="0" cellspacing="0" cellpadding="0">';
echo'<tr>';
echo '<td colspan=4><IMG alt="" border="0" width="1" height="1" hspace="0" src="images/image12.gif"></td>
</tr>';
echo '<tr>';
echo '<td width="60" align="left" valign="top" nowrap class="news_content1a">';
echo '<a href="" class="news_content1a">11.10.2005:</a></span><br></td>';
echo '<td width="5" align="left" valign="middle"><IMG alt="" border="0" width="3" height="1" hspace="0" src="images/image12.gif"></td>';
echo '<td width="100%" align="left" valign="top">';
echo '<span class="news_content1a">News Source1</span><br>';
echo '<span class="news_content2a">News Headline1</span><br><br></td>';
echo '</tr>';
echo '</table>';
/* <!-- End News1 -->
<!--Start News2 --> */
echo '<table border="0" cellspacing="0" cellpadding="0">';
echo'<tr>';
echo '<td colspan=4><IMG alt="" border="0" width="1" height="1" hspace="0" src="images/image12.gif"></td>
</tr>';
echo '<tr>';
echo '<td width="60" align="left" valign="top" nowrap class="news_content1a">';
echo '<a href="" class="news_content1a">11.10.2005:</a></span><br></td>';
echo '<td width="5" align="left" valign="middle"><IMG alt="" border="0" width="3" height="1" hspace="0" src="images/image12.gif"></td>';
echo '<td width="100%" align="left" valign="top">';
echo '<span class="news_content1a">News Source2</span><br>';
echo '<span class="news_content2a">News Headline2</span><br><br></td>';
echo '</tr>';
echo '</table>';
/* <!-- End News2 -->
echo '</td></tr>';
echo ' </table>';
echo '<table>';
echo '<tr>';
echo '<td ><span class="text3"><b>News</b> more</span>';
echo '</a>';
echo '</td></tr>';
echo '</table>';
Need help. It is difficult question, but I hope you can help.