Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo "BEGIN:VCARD" . "<br>";
- echo "VERSION:4.0" . "<br>";
- echo "KIND:org" . "<br>";
- echo "FN:" . $ResultsLists['CompanyName'] . "<br>";
- echo "ORG:" . $ResultsLists['CompanyName'] . "<br>";
- echo "ADR;TYPE=work;LABEL=\"". $ResultsLists['CompanyAddress1'] . "\n" . $ResultsLists['CompanyAddress2'] . "\n". $ResultsLists['CompanyCity'] . "\, " . $ResultsLists['CompanyState'] . " " . $ResultsLists['CompanyZipcode'] . "\n" . $ResultsLists['CompanyCountry'] . "\":" . $ResultsLists['CompanyAddress2'] . ";" . $ResultsLists['CompanyAddress1'] . ";" . $ResultsLists['CompanyCity'] . ";" . $ResultsLists['CompanyState'] . ";" . $ResultsLists['CompanyZipcode'] . ";" . $ResultsLists['CompanyCountry'] . "<br>";
- if($ResultsLists['CompanyPhone'] != ""){
- echo "TEL;TYPE=\"work,voice\";VALUE=uri:tel:" . $ResultsLists['CompanyPhone'] . "<br>";
- }
- if($ResultsLists['CompanyEmail'] != ""){
- echo "WORK.EMAIL:" . $ResultsLists['CompanyEmail'] . "<br>";
- }
- echo "WORK.LANG;PREF=1:en" . "<br>";
- if($ResultsLists['CompanyNotes'] != ""){
- echo "NOTE:" . $ResultsLists['CompanyNotes'] . "<br>";
- }
- if($ResultsLists['CompanyWebsite'] != ""){
- echo "URL:" . $ResultsLists['CompanyWebsite'] . "<br>";
- }
- echo "END:VCARD";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement