I hope I'm asking this question correctly. I am succesfully using Fullcalendar
on my site to show various dates for various members, all of which are stored in a database.
I have implemeneted a bootstrap popover that displays the members name when a mouse is hovered over the event in the calendar. I want to add a profile image to the popover for each particular member but I just can't get the img src url to pass from the json feed file to the popover.
Here is the relevant code I am using in the json feed file.
$eventsArray['img'] = '<img src="memberFiles/<?php echo "$id"; ?>/pic1.jpg" alt="Ad" width="220"></a>';
Note the $id variable refers to that particular user.
And this is what the array looks like.
"img":"\/pic1.jpg\" alt=\"Ad\" width=\"220\"><\/a>"},
Where is the $id variable and why do I get \/.
Any pointers in the right direction will be greatly appreciated.