Posts by Gê Bender • 1,052 points
26 posts
-
5
votes3
answers5605
viewsA: Column 'column name' in Where clause is ambiguous
This error is quite simple, the column COD_IDENT_CLIEN exites in both tables and therefore needs to be specified in the clause WHERE, so put WHERE CA.COD_IDENT_CLIEN = ... or WHERE C.COD_IDENT_CLIEN…
-
1
votes1
answer54
viewsQ: How to access the Sqls of the updates made by Doctrine Orm:schema?
I have an application running on a server (production) that does not give access to ../vendor/bin/doctrine and so I can’t run the commands, like the orm:schema-tool:update, for example. I am running…
-
8
votes4
answers2297
viewsA: Is it correct to use a table in the page layout?
Tableless is a term that emerged when CSS and HTML began to evolve and enable a much wider range of control for Frontend personnel. To better understand, imagine that at that time there were not…
-
1
votes1
answer1524
views -
3
votes2
answers195
viewsA: Toggle "a" href by clicking on other elements
First, enter the button links in an HTML attribute, such as data-rel, for example HTML <div data-rel="http://www.link1.com.br" class="menu_button"> <i class="fa fa-paypal"></i>…
-
1
votes1
answer89
viewsA: Update of multiple Images
First store the names in an array while running your foreach: $nomes = array(); foreach($_FILES['files']['tmp_name'] as $index => $file) { (...) $nomes[] = $_FILES['files']['name'][$index]) .…
-
1
votes3
answers1624
views -
2
votes3
answers6109
viewsA: Undefined Index while recovering data from POST
All you need to do is validate the data, because the POST array only receives data from the fields that had data posted. Validation can be client-site, that is, on the client side, which is the…
-
2
votes2
answers238
viewsQ: Error installing Laravel: Package not available in stable version
I’m strictly following the indicated in the Laravel documentation to make your installation: composer global require "laravel/installer=~1.1" However, after a long delay comes the following return:…
-
13
votes1
answer3746
viewsA: How to save multiple inputs with the same "name"?
Hello, as said in the comments, just turn them into an array: HTML <form method="post" action="guardar.php"> <input type="hidden" name="produto[]" value="teste1"> <input type="hidden"…
-
0
votes2
answers226
viewsA: Is using Prepared statements and bound values enough to avoid SQL Injection with PDO?
Yes, using bindValue already avoids SQL Injection attempts.
-
4
votes2
answers1804
viewsA: Destroy sessions in PHP
This code is redundant, only session_destroy(); alone already solves the case. You do not need the if , nor the other commands. http://php.net/manual/en/function.session-destroy.php…
-
0
votes3
answers637
viewsA: Leave paging fixed using jQuery datatable
Hello, just add settings by CSS as follows: #myTable_paginate { float:left !important; } You can put other settings like padding and margin for example, to adjust better…
-
2
votes1
answer131
viewsA: How to use error_reporting
Hello, These two commands can resolve your issue. They should be the first lines of the application. ini_set('display_errors', true); // Configura o PHP para mostrar os erros error_reporting(E_ALL);…
-
15
votes1
answer6362
viewsA: What does L, R, NC mean in HTACCESS?
Follows the documentation of the Apache on the flags: The [L] is last, that is, in a list of conditions, the conditions below the one with this flag will not be read. The [R] is redirect, this…
-
3
votes2
answers156
viewsA: Perform 3 simultaneous searches in the same table
Subquery no from seems to be an alternative: SELECT a.carros, b.materiais, c.ips FROM (SELECT carros ...) AS a, (SELECT materiais ...) AS b, (SELECT ips ...) AS c I hope I helped, hug…
-
1
votes1
answer98
viewsA: Error trying to select with PHPOO
The error is saying: Your $connected variable does not exist. You have prompted it in the constructor, but in the select method it does not exist. You can do the following: In the class declaration:…
-
2
votes1
answer263
viewsA: Problems inserting HTML using ajax
Hello I did a simulation without ajax to facilitate, but the context is the same. <script type="text/javascript" src="http://code.jquery.com/jquery-2.1.3.min.js"></script> <table…
-
1
votes4
answers18313
viewsA: Change point per comma to input value
Being the need to show the numbers in EN format, ie with points in the decimal separator, this within the input itself the most recommended is to use a jquery plugin, I suggest the following:…
-
0
votes1
answer236
viewsA: How to reload the contents of a popup (modal)
You can use window.opener and re-assign Location.href. This will work as a re-load of the page that opened it: <script> window.opener.location.href = window.opener.location.href;…
-
1
votes2
answers6303
viewsA: Build dynamic HTML table with PHP
Try the following: <?php $i=0; echo '<table border="0">' while ( $linha = mysqli_fetch_assoc($executaSelect) ) { if ($i === 0) echo '<tr>' echo '<td>' . $linha["nome"] .…
-
2
votes1
answer1608
viewsA: Display image to be loaded PHP
This approach solves this problem in a simple way using only jquery: <script src="http://code.jquery.com/jquery-1.11.2.min.js"></script> <input id="imgInput" type="file">…
-
1
votes1
answer105
viewsA: Get multiple IDS, but perform different operations on each of them
Jquery makes it much easier to save code: You can call it any jquery action, like an onclick, for example: <script> $(document).ready(function() { if($('#id1').html()) { $('#id3').hide(); }…
javascriptanswered Gê Bender 1,052 -
0
votes1
answer925
viewsA: PHP Warning: imagejpeg(): Invalid 2nd Parameter, it must a filename or a stream
Refer to the method documentation and you will see that the second argument should be the file name. He and the third are optional, but if passed should be according to the expected function.…
-
1
votes2
answers484
viewsA: Find input values with same class
Hello, you are missing the name which in case should be an array. And the value of the input, which I understand, is what you want to add: <input name="p1[]" value="1" type='text' class='p1'…
-
1
votes1
answer1186
viewsA: button inside PHP variable
In PHP it is possible yes, but you are calling a method in javascript. The closest to what you need is to do this method in javascript that will call a new page where you will run the method in PHP:…