I don't know much about SQL. I'm trying to access this information to put it in a variable.
For example, I need to take the e-mails, the two values and put them in a separate variable.
How do I make a filter to find these variables according to the email value?
$comissao_total = $wpdb->get_results("SELECT post_content FROM wp0l_posts WHERE id = 9029");
print_r($comissao_total);
The return I get is something like this.
Array(
[0] =>
[post_content] => [
["Email","D\u00e9bito","Cr\u00e9dito","Identifica\u00e7\u00e3o do Vendedor"],
["[email protected]","725","0","[email protected]"],
["[email protected]","645.5","20",
"[email protected]"],
["[email protected]","200","0","[email protected]"],
["[email protected]","21591.2","3573.2",
"[email protected]"]
]
))
In this case it returns the array with all the data, but in fact I would need to get only the values, via email.
For example: If I want to filter the email [email protected], I need to receive 725 and 0 in two variables. Corresponding to this array ["[email protected]", "725", "0", "[email protected]"]