Posts by Valdir Silva • 133 points
9 posts
-
1
votes1
answer85
viewsQ: Valid working hours
How do I calculate the time spent on calls answered by an employee? However always within valid working hours, and knowing that the working hours of an employee is between 08hs and 18hs. For…
-
2
votes2
answers12546
viewsA: How do I add more elements to an array in php
To add items in an array you must use the array_push function. http://php.net/manual/en/function.array-push.php For example: $erro = []; array_push($erro, "Erro 1"); array_push($erro, "Erro 2");…
-
4
votes2
answers527
viewsA: Upload Images does not work PHP
Change the opening of your form that tag below and test again: <form class="form-horizontal" method="POST" action="cadastrar_operacional.php" name="form1" enctype="multipart/form-data">…
-
0
votes2
answers882
viewsA: Call to a Member Function query() on null in /var/www/html/mvc/models/Anuncios.php:9
Hello Helder try to change the name of the variable that receives the query, maybe it is conflicting because you are declaring the same variable($sql) twice. $res = $this->db->query($sql); if…
phpanswered Valdir Silva 133 -
0
votes1
answer131
viewsA: Validate table row contents
I work by assembling the table directly in Function and give an echo in the variable. See if it helps you that way. $html = "<br/><br/><table width='100%' border='0'>";…
-
0
votes1
answer27
viewsA: I can’t send more than one e-mail
This way it should work, because it is the recommended way in the documentation: $to = '[email protected]' . ', '; $to .= '[email protected]';
phpanswered Valdir Silva 133 -
1
votes1
answer38
viewsQ: Compare arrays and highlight changes
I’m having a little problem that I’m having trouble solving. I have an array with a history of occurrences that has 5 positions, and I need to display these histories by highlighting the different…
-
2
votes2
answers66
viewsA: Array , This code above is no mistake and when I open it :
The error pointed refers to the variable "$mel" that does not exist, which you declared is "$Meal".
phpanswered Valdir Silva 133 -
0
votes2
answers50
viewsA: Hide registration to the user
If your case is only to update in the database this example solves: UPDATE COMPANY SET ADDRESS = 'Texas' WHERE ID = 6; UPDATE sua_tabela SET seu_campo = valor_para_alterar WHERE ID =…