I have a database called 'currency', and I want to retrieve some data from it and place the data into variables. How can I do this?
Here is what I currently have.
public function convert() {
$price = $this->EE->TMPL->fetch_param('price');
if( $price === FALSE ) {
return "";
}
$tagdata = $this->EE->TMPL->tagdata;
$this->EE->db->select( "usd, eur, gbp" );
$query = $this->EE->db->get( "currency" );
$usd = '';
$eur = '';
$gbp = '';
$usd_convert = $price * $usd;
$eur_convert = $price * $eur;
$gbp_convert = $price * $gbp;
return $usd;
}












