I have a php variable ($num_rows) that i want to add to button value.
I am not getting value i want which should show like "Pending Friend Requests(0)"
I tried many different things but is not working. How can i write the code so that i get right value?
Here is the code:
$interactionBox= '<input type="button" value="Pending Friend Requests(\'.$num_rows.\')" onclick="return false" onmousedown="javascript:toggleInteractContainers(\'friend_requests\');"/>';
I tried:
value="Pending Friend Requests(".$num_rows.")"
value="Pending Friend Requests(.".$num_rows.".)"