Skip to content

Instantly share code, notes, and snippets.

@dbarkley
Created March 19, 2014 13:03
Show Gist options
  • Save dbarkley/9641180 to your computer and use it in GitHub Desktop.
Save dbarkley/9641180 to your computer and use it in GitHub Desktop.
VendorTxCode
// Horrible code to forful Vendor Tx Code requirement
$referrer_sql = "SELECT * FROM wp_events_answer WHERE attendee_id = \"$attendee_id\" and question_id = \"12\"";
if (!$referrer_row = $wpdb->get_row($referrer_sql)) {
$referrer = "website-default";
} else {
$referrer = $referrer_row->answer;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment