What l would like to do is click on one of the links and have it open in a new page called 'NEWS'
Somehow i need to build a simple form in the code below and have the 'sId' as the link name and on the 'NEWS' page use
the '$_POST' again to 'SELECT' the correct record.
Here is my code........
Code: Select all
<?php
require_once('../App_Data/odbc_open.php');
$result = odbc_exec($odbc, "SELECT * FROM Search WHERE (sKeyword1 LIKE '%$_POST[item_search]%')");
echo "Results For <b>$_POST[item_search]</b>";
echo "<table width='910' border='0' align='center'>";
while($row = odbc_fetch_array($result))
{
echo '<tr style="text-align:justify">';
echo '<td valign="top">';
echo '<img src="../'.$row['sImages'].' " width="'.$row['sImageWidth'].'" height="'.$row['sImageHeight'].'" alt="'.$row['sAlt'].'"hspace="8" vspace="8" align="right"/>';
echo '<div><a href="'.$row['sId'].'" class="smallLinks" > '.$row['sHeading'].'</a><br /></div>';
echo '<div class="style2" style="text-align:justify">'.$row['sDescription'].'<br /></div>';
echo '<div class="smalldate">Date: '.$row['sDate'].'</div>';
echo '<br />';
echo '</td>';
echo '</tr>';
}
echo "</table>";
?>
Many Thanks