I'm trying to make Href tag in php like this :
while($row = mysql_fetch_array($result))
{
echo"<a href >".$row['loginname']."<br>"."</a> ";
}
which retrieve the data from MySQL
I'm trying to add Onclick
action to print $row['loginname']
I tried to make this one
echo"<a href onclick=\"myFunction()\">".$row['loginname']."<br>"."</a> ";
function myFunction()
{
echo " Hello";
}
but It didn't work for me ? any help ?