Posts by Will Knippelberg • 527 points
30 posts
-
0
votes1
answer35
viewsA: data return with Jquery (AJAX) and PHP
<?php $comentario = $_POST['comentario']; include ("conectar.php"); $sql = "select * from comentarios WHERE comentario LIKE '%". $comentario ."%'"; $resultado = $conexao -> query($sql);…
-
1
votes1
answer21
viewsA: How to go multidimensional picking up key and value?
Considering that each item generates an array whose Dice is the month and each month generates another array whose Dice is a product and each product generates an array of items with the "final…
-
0
votes1
answer55
viewsA: Return of Ajax to PHP
That is not possible. The PHP runs on the server and returns a HMTL. The ajax however it runs in the browser through javascript. So your browser cannot dynamically assign a value to a variable PHP.…
phpanswered Will Knippelberg 527 -
0
votes1
answer34
viewsA: Sum all records of an INT field in PHP and display it
It’s not working because the mysqli_num_rows returns only the total number of rows in your query. In your case, it is returning 1 divided by 100 = 0,01. You need to return the searched record, which…
-
2
votes1
answer222
viewsQ: Change default column Datatables JS
I’m wondering if it is possible to change the default ordering of a datatable, made with the plugin https://datatables.net/ Currently he is "born" by ordering by the first column, and I wanted him…
javascriptasked Will Knippelberg 527 -
1
votes1
answer126
viewsA: Break mPdf page using view
already tried using div with page-break-before css? <div style="page-break-before: always;"></div> Before printing this div, it breaks the page and then you can print its contents…
-
1
votes1
answer141
viewsA: Questions about dynamic system update of Dashboard
Update without refresh I usually use Ajax with val attribute replacement in html fields in tags: To do this we will create a PHP page that returns the results in JSON: get_results.php: ps: I don’t…
-
1
votes1
answer37
viewsA: Problem when trying to display data in a table - php
Your Query: "SELECT * FROM propostas,registo WHERE propostas.nproposta=registo.nproposta AND propostas.nproposta='$nproposta'"; '$nproposta' is not set or initialized, so the error…
-
0
votes1
answer1269
viewsA: How to make sweetalert to confirm deletion of records?
swal("Atenção","Deseja Excluir?", { closeOnClickOutside: false, //não fecha o swal se clicar fora dangerMode: true, //danger mode pra chamar atenção closeOnEsc: false, // não deixa fechar no esc…
-
0
votes5
answers304
viewsA: because my class only returns NULL
Your class validationName Does not treat names that have between 4 and 24 characters. Hence returns NULL Your class validationSobrenome It does not treat surnames that have between 4 and 24…
phpanswered Will Knippelberg 527 -
0
votes2
answers126
viewsA: Is it wrong to create checkboxes with the same name?
That is correct. Avoid just repeating the ID as they should be unique. in PHP you can recover them with foreach foreach($_POST['chk_stat'] as key){ //tratamento para cada combo selecionado }…
htmlanswered Will Knippelberg 527 -
0
votes1
answer159
viewsA: Upload several input files via Ajax
You need your form to have enctype="multipart/form-data" Having this, to upload via ajax, you need to create a Formdata: var form = $("#id_do_seu_form"); var formdata = false; if (window.FormData){…
-
0
votes1
answer551
viewsA: Phpmailer - Email Formatting
The problem is that you are in the formatting of your table. Here for example: <tr><td>Telefone:</td><td>$phone</td></tr> <br> <h4>Qual a melhor forma…
-
1
votes1
answer116
viewsQ: Do not colorize current date with Fullcalendar
I have a schedule in fullcalendar, and I’m trying not to color today.. note that it is in light yellow (Mon 1/4) Any hint?…
-
0
votes2
answers153
viewsA: Assign returned Success value to a variable
What you are trying to do will not work because there is no way to recover the value of "Alert" out of ajax. Use the "Error" array of ajax $.ajax({ type: 'GET', url : './fetchbusca', success :…
ajaxanswered Will Knippelberg 527 -
3
votes2
answers86
viewsA: Intermittent results...has JOIN limit in PHP?
For Mysql there is a limit of 61 tables or 4096 columns. In your case you would need a bank dump to evaluate relationships. Probably some foreign key there might not be hitting. The 13_tecfil "id"…
phpanswered Will Knippelberg 527 -
0
votes1
answer428
viewsA: Perform a sound on another screen when a new record is inserted
Basically you will need a page that looks at the table call for then modified the php panel. to capture the necessary data and return it in JSON: <?php include "db.php"; //ARMAZENA O TOTAL…
-
0
votes1
answer48
viewsA: State/City Combos: AJAX does not return cities
in Controller, try to replace: $uf_id = $request->get('value'); for $uf_id = $request->value;
-
2
votes1
answer81
viewsA: How to upload more than one AJAX - PHP id?
I use the "data" array to pass the parameters using jquery ajax: $('#id_motor').change(function(){ $.ajax({ url: 'sub_ano.php', type: 'GET', dataType: 'json', //espera o retorno em json data: {…
-
0
votes1
answer166
viewsA: Extending layout
replace in php client.blade. @section('formulario') for @yield('formulario') form.Lade can keep as it is and then the content of the Section('form') of it enters the Yield('form') of the extended…
laravel-bladeanswered Will Knippelberg 527 -
0
votes1
answer319
viewsA: Fullcalendar - Block drag and drop when creating new events
The only way I could was in fullcalendar.min.js looking for selectionFootprint = _this.computeSelection(origHitFootprint, hitFootprint); and replace with selectionFootprint =…
-
0
votes1
answer53
viewsA: Div not encompassing its elements
You missed closing a div id="header-menu" See if this solves your problem: (I can’t test here because CSS’s are missing that are linked to your code but not present in the question) <!DOCTYPE…
-
0
votes1
answer168
viewsA: SELECT with LIKE and LEFT JOIN
If that’s what I’m thinking is because of the case sensitive... You’re searching for the "%test% stone" but in the bank the names are as "Test".... the first search returned right because…
mysqlanswered Will Knippelberg 527 -
1
votes2
answers3657
viewsA: ERR_CONNECTION_REFUSED - Why can’t your phone find the absolute path of files through localhost?
You need to go on PHP.ini and authorise the include using HTTP. Search the php.ini for allow_url_include and if you are off change to on, if you are 0 change to 1.…
-
1
votes1
answer216
viewsA: How to load Combobox in C#?
using database, create a dropdown event in the combo that does the following:: //LIMPA OS ITENS DO COMBO nomedoCombo.Items.Clear(); //CONECTA NO BANCO E RETORNA A CONEXÃO (DEVE TER SUA MANEIRA DE…
-
-1
votes2
answers789
viewsA: Recover data after Submit
you can check the form to see if any radio has been marked or not //javascript function checaPesquisa() { sel = document.getElementByName("14_pesquisa").checked; if(!sel ){ alert("Escolha uma…
-
0
votes2
answers73
viewsA: Checking if login already exists via AJAX
already tried to marry this Blur action using jQuery? $("#IdDoCampoQueVaiDarBlur").blur( function(){ checalogin(); });
-
0
votes1
answer44
viewsA: Confirm Code and go to login page
Create a page called "Verification.php" and put the code below. It will connect to your Database and will select the data registered in the database. Switch the mysql_select_db line there and change…
-
3
votes3
answers881
viewsA: Receive variable in php and call Ajax function by passing this variable
In PHP do so: if (isset($_POST['Termo'])) { $Termo = $_POST['Termo']; echo '<script> loadDoc("'.$Termo.'") </script>; } And in your JS: function loadDoc(meuTermo) { var Termo = meuTermo;…
-
4
votes7
answers57425
viewsA: Check/Deselect Checkbox from a button
$("#MarcarTodos").click(function(){ if ($(this).prop( "checked")){ marcardesmarcar(true); }else{ marcardesmarcar(false); } }); function marcardesmarcar(bool){ $('.marcar').each( function(){…