Posts by HananiaMizrahi • 79 points
8 posts
-
2
votes2
answers412
viewsA: What is the Demetrius Law about?
Demetrio’s Law or The Minimum Knowledge Principle guides us to reduce interactions between objects, advising us to encapsulate functions, routines, internal logics and systems. A system with many…
oopanswered HananiaMizrahi 79 -
3
votes6
answers96354
viewsA: How to make an "Alert" in PHP?
About your code the case is simple, only missing a quote echo "<script>alert('Email enviado com Sucesso!');</script>"; Loveliness?
-
1
votes3
answers881
viewsA: Receive variable in php and call Ajax function by passing this variable
Brother, how are you sending the data via form I recommend the following data : $("form").serialize() so all form data goes to the variable data and then you can work it with ajax... I hope I…
-
0
votes3
answers638
viewsA: How to open a new page by clicking on the table row?
I’m not very good with Javascript but I usually use the following <td onclick="location.href='$linkQueVcQuerCarregar'">CONTEUDO DA CELULAR</td> It usually works as requested, but I’d…
-
1
votes4
answers437
viewsA: Error checking IF with array in PHP
What happens is, for each item in the list it checks, then it will see there, the array has 1, 3, 5, 7. it takes element id 5 He’ll be talking, no, no, yes, no. What you need to do is find the…
-
0
votes3
answers572
viewsA: I want to change the color of the button according to the value of the variable
In general if you change !isset for isset will work... But, just for a little bit, do a debug to see if you’re getting into if, dinghy one exit('Aqui') within the ifto make sure you’re in...…
-
0
votes4
answers437
viewsQ: Error checking IF with array in PHP
I’m trying to make a if within a foreach and the situation is as follows: I have a array who I called $plates who returns like this: array(2) { [0]=> array(1) { ["chave"]=> string(1) "1" }…
-
0
votes1
answer413
viewsQ: Check array keys
Next, I have a value saved array in the variable $chaves as the example below: array(2) { [0] => array(1) { ["chave"] => string(1) "1" } [1] => array(1) { ["chave"] => string(1) "3" } }…