0
Hello,
I have an INSERT that registers in the bank with base64_encode(), working perfectly.
"INSERT INTO Atendimento_Campo_Prontuario (
acpr_id,
acpr_apro_id,
acpr_valor
)
VALUES (
:acprn_id,
:acprapro_id,
:acpr_valor)";
$p_sql->bindValue(':acpr_valor', base64_encode($acpr->getAcpr_valor()));
Now I need the base64_decode to get this information, someone can help me with this?
Would you have some way to pass base64_decode() inside SELECT like I do with acpr_id?
"SELECT * FROM table WHERE table.acpr_id =:acpr_id";
$p_sql = Conexao::getInstance()->prepare($sql);
$p_sql->bindValue(':acpr_id', $acpr->getAcpr_id());
Use base64_decode for each time you call the variable in the view?
– Rafael Ribeiro
use in the controller before sending to the view, but it would be the same thing
– Jander Francisco