In my php page there is a search function and when user search it will display table containing search results. I want to add
. Because when user click one record I want to pass values to ajax page.
to those results. But my code is not working. Please help me.This is my code.
Code:
<a href ..></a>
to those results. But my code is not working. Please help me.This is my code.
Code:
while($row = mysql_fetch_array($result))
{
echo "<a href='javascript:void(0);' onclick=\"LookupVehicle('$VehicleNo','$VehicleType','$VehicleMake','$Price'); return false;\">";
$array = array('VehicleNo','VehicleType','VehicleMake','Price');
foreach ($array as $v)
$$v = $row[$v];?>
<tr>
<?php
foreach ($array as $v)
echo "<td height=20 cursor: pointer;'> ".$$v."</td>";
?>
</a>
</tr>
<?php }
Comment