Posts by Leandro Castro • 306 points
14 posts
-
-1
votes2
answers54
viewsA: Run a PHP with GET parameters
You can do this using the "file_get_contents" command. I believe it is the simplest way to make a get call in PHP. It would look something like this $retorno =…
phpanswered Leandro Castro 306 -
6
votes2
answers125
viewsQ: Merge two features
I have 1 branch in my project 1 - Master I created 1 more branch and developed 1 Feature. I now have 2 branchs 1 - Master 2 - feature1 I started to develop another Feature and now I have 3 branchs 1…
gitasked Leandro Castro 306 -
0
votes3
answers178
viewsA: While php creating div
Try it like this: <?php while ($row_produto = mysqli_fetch_assoc($resultado_produto)) { ?> <div> Aqui você pode criar elementos normalmente </br> Pode também exibir valores assim:…
-
0
votes0
answers231
viewsQ: Change folder components (Angular.io 7+)
Nowadays I have the following structure in my Angular7 project .src ..app ...dash-component ...login-component ...outro-component Is there a way to automatically change the components directory…
-
2
votes2
answers241
viewsQ: Select text in parentheses (CSS)
I wonder if there is a way to select a text that is in parentheses using CSS only. For example.: <p>Sistemas de informação (ead)</p> I would like to select the text "ead" and put it in…
-
0
votes2
answers556
viewsA: Centralize DIV with Bootstrap or CSS
To align the DIV horizontally, apply the following CSS attributes to it #novoServico{ display: table; margin: 0 auto; }
-
1
votes1
answer38
viewsA: Formularies in PHP
Try to check if the variable is "set" before. Follow code below: <?php if(isset($_GET["cot"])){ $cot = $_GET["cot"]; }else{ $cot = ""; } echo $cot; ?> It is also possible to do more 'elegant'…
-
2
votes2
answers451
viewsA: Traversing json using Ajax jquery
Below is a commented example $.ajax('data.json').then(function(data) { //Converte a string(json) retornada do server para um objeto acessível para o JS var meu_json = JSON.parse(data) // Printa seu…
jqueryanswered Leandro Castro 306 -
0
votes2
answers56
viewsA: Scripts - Load all or split?
Hello. I usually minify all my scripts in a single javascript file, this speeds up when it comes to Load and improves the performance of the page. I recommend doing it that way. If you want to load…
-
1
votes3
answers48
viewsA: Email sending problem like Ajax
From what I understand, the form is "submitting" the data. A first test I would do would be to replace the type="Submit" of the button by type="button", so html will ignore that it is a Submit…
-
3
votes1
answer2392
viewsA: What does the MIT license mean?
The license is permissive and considered equivalent to Simplified BSD without the endorsement clause. However, your text is much more explicit in dealing with the rights being transferred, stating…
googleanswered Leandro Castro 306 -
0
votes2
answers81
viewsA: Change the result of a TD value for a dynamic table image
Good morning, my friend. I’m not sure I understand your question. Can you give me more details? If your question is about how to change the tag "src" attribute <img> you can do this using…
-
0
votes2
answers1335
viewsA: How to align items next to each other?
From what I understand, with the bootstrap classes themselves you can do what you want. Try something like this <form> <div class="form-group row"> <label for="staticEmail"…
-
0
votes4
answers525
viewsA: Write inside a div with a function
Tried that? $("#div_id").html("seu texto aqui"); Note: code using jQuery