get_val
php
string get_val(string $cecha)Retrieves a database property associated with the current email address. The argument to get_val() is the recipient property name. Available properties:
- email - current email address,
- gsm - GSM number associated with the address,
- status - address status in the system:
status Description 2 Manually unsubscribed by a SARE operator 3 Status assigned by an operator after the recipient requests to unsubscribe 4 Recipient has requested to unsubscribe, for example by clicking an unsubscribe link 5 Address has not been confirmed in any way; no administrative email has been sent 6 Address is saved in the database and awaiting confirmation; an administrative email has been sent 7 Address blocked by an operator 8 Address subscribed and confirmed
- name - Name field,
- comment - comment,
- entry - date the address was added to the database (Y-m-d H:i:s format; see date()),
- optedout - most recent date of an unsubscribe request (Y-m-d H:i:s format); contains 0000-00-00 00:00:00 if there has been no such event,
- source - address origin: 1 means manual entry; values from 10 to 99 mean the address was added through an interface; values >100 identify subsequent imports.
- mailtype - recipient's preferred email format: "txt" or "txt,html",
- sent - number of mailing emails sent to this address,
- smssent - number of SMS messages sent,
- prop1 through prop9 - basic properties,
- other properties defined in the database by the user.
Warning
Requires an email address context.
Example:
php
$imie = get_val("prop1");
$wpis = get_val("entry");
$miasto = get_val("miasto");
print("Hello ".$imie."! Your city is ".$miasto." and you have been with us since ".$wpis);Result:
Hello Adam! Your city is Warszawa and you have been with us since 2010-02-11 13:45:03