<?PHP
$result = mysql_query($query);
$finalval=0;
while($row = mysql_fetch_array($result))
{
$finalval=$finalval."<a onClick='showContent("please display")'
href='#' >". $row['Title'] ."</a> <br>" ;
}
echo $finalval;
?>
<script language="javascript" type="text/javascript" >
function showContent(value)
{
alert value;
}
</script>
Guys please help me out and please please tell me in a php code on clicking link how to call javascript/ajax function..Thank you so much