Posts by Jefferson Amorim • 34 points
5 posts
-
0
votes2
answers683
viewsA: Sum foreach within foreach
Problem solved. I initialized the variables before the main foreach (as I reported within that foreach had other foreach depend on the outcome of that first). $TOTQtdeRetornos = 0;…
phpanswered Jefferson Amorim 34 -
1
votes2
answers335
viewsA: Json does not return data from Mysql database
In select you are not giving the names of the table fields you want to play in the array. $sql = $db->prepare("select id, descricao, modelo_email from modelo_email"); Here you should use fetch…
-
1
votes2
answers335
viewsA: Json does not return data from Mysql database
It is because you reversed the positions while storing the information in the variable. <?php include_once "conexao.php"; $sql = $db->prepare("SELECT * FROM modelo_email"); $sql->execute();…
-
-1
votes2
answers683
viewsQ: Sum foreach within foreach
I’m having a question about why the sum inside the foreach isn’t working. I solved the situation differently by recreating a new select with Count(*). But I’d like to know if I’m doing something…
phpasked Jefferson Amorim 34 -
-1
votes1
answer379
viewsQ: Error "Notice: Undefined index:"
Hello! I’m getting this message while trying to display the page. Notice: Undefined index: Identregator in C: wamp64 www Solus resume_dia.php on line 378 On line 378 I have the following structure.…
phpasked Jefferson Amorim 34