Skip to content

Instantly share code, notes, and snippets.

@unlocomqx
Created May 29, 2020 13:18
Show Gist options
  • Save unlocomqx/41b9932b14c297eff6523f3ec880cd71 to your computer and use it in GitHub Desktop.
Save unlocomqx/41b9932b14c297eff6523f3ec880cd71 to your computer and use it in GitHub Desktop.
<?php
$sql = new DbQuery();
$sql->from('fmm_registration_userdata');
$sql->select('value');
$sql->where('id_customer = ' . (int)$customerId);
$sql->where('id_fmm_registration_fields = 3');
$price_gold = Db::getInstance()->getValue($sql);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment