I am trying to load VCARD information into a database field as a long text string. In some cases the vcard information comes with a parameter that ends in "$_" (see second to last line). i cannot get php to bring this into the variable as string to escape it.
`$vcard = mysqli_real_escape_string($connection, "BEGIN:VCARD
VERSION:3.0
FN:Your Name
N:Name;Your;;;
EMAIL;TYPE=INTERNET;TYPE=WORK:your@email.here
TEL;TYPE=CELL:
ADR;TYPE=HOME:;;I am here;;;;
ORG:Your organization
TITLE:Owner and Co-Creator
item1.URL:https\://yoursite.com
item1.X-ABLabel:_$!<HomePage>!$_
END:VCARD");`
i get a "Notice: Undefined variable: _ in C:" error. I can manually escape the second $ but that defeats the purpose. I tried metaquote() and that does not work either. Any help on how I can circumvent this error?