I am trying to pass both a string and an integer into the same function, howe I have issue with quotes. I figured out that the error is in the echo $q->info
part, I must use double quotations on this code.
Can someone help me to write this $q->info
, but to get real value not $q->info
?
My code so far is
<td><a href="javascript:add(<?php echo $q->info?>,<?php echo $q->id?>)">Edit</a></td>
and the js function
function add(var,var2)
Can someone help me with this?