I want to add link to the searched element which is done through ajax. In search.php I've following code but apparently it's not working.
while($row = mysql_fetch_array($res_old))
{
echo "<li style='border-bottom: 1px solid #A5ACB2; padding:5px; margin-left:-40px;margin-right:5px;>";
$productid=$row['productid'];
echo "<a href='search.php?productid='$productid'>";
echo $row['brand'];
echo " ";
echo $row['product_name'];
echo " ";
echo $row['short_desc'];
echo " ";
echo "₹";
echo $row['price'];
echo "</a>";
echo "<br>";
echo "</li>";
}
Anybody can shade some light on why it's not working? Just link is not being added, results are coming fine.