I'm new here, but in my last searches, I found everything that I needed here, except this question.
I want create a dynamic tooltip with jquery or something else, but my question is, if I can do a mysql query when the user pass the mose over the text than I want, for example:
<input type="checkbox" name="COL[1]" value="pmelendez" id="pmelendez" onmouseover="javascript:function_to_make_query(this.id);"/>pmelendez
And, in the function I need something like this:
<script>
function_to_make_query(idreq){
var result=<?php
$q="SELECT complete_name from mydatabase where uname=" + idreq;
$result=mysql_query($q,$my_conection);
?>
}
</script>
But I need show the result on a tooltip or something like that.
For your help, thank you so much.