Posts by Jonathan Machado • 283 points
13 posts
-
1
votes1
answer27
viewsQ: Preprocessor Stylus - Error running Stylus watch
Hello, I have the following problem: When rotating the command stylus main.styl main.css -w the stylus compiles what is saved, that is, it takes what is in the files styl/title.styl and…
-
0
votes0
answers496
viewsQ: Laravel - Redirect::to or Redirect::back giving Tokenmismatchexception error?
The following is happening, I have the login screen that does some checks, in case you do not pass any in my Controller I make a redirect for url login message with the error. This is where the…
-
-5
votes3
answers2535
viewsA: Script para enviar email
Only with front-end languages can you get only through tools like formspree which is what I did with a website my, how I used the emerges to host, and it only accepts front-end language, I had to do…
-
1
votes1
answer1076
viewsA: How to search for values in a PHP file with jQuery - AJAX?
$.get('url', {parametro: valor}, function(data){ console.log(data); }); I believe the above example solves. https://api.jquery.com/jquery.get/ After that it is only to manipulate in the way you…
-
2
votes2
answers43
viewsA: Error when trying to calculate in fields of the same table in update mysql
I have two possible solutions: The first is that you are doing a string subtracting another string, this may be giving conflict. Then unquote the $Varconvvalor and $Varconvvalorfinanc variables from…
-
1
votes1
answer53
viewsA: Error making ajax call
In your ajax you expect a json, but in your php function you are returning an echo (i.e., an HTML with Success in body). I believe that if you do it will work: header('Content-type:…
-
1
votes2
answers1156
viewsA: How to do slow zoom/zoom effect?
I tested it here and it apparently worked with this code: function zoomLento(){ var imagem = document.getElementById("imagem"); for (var i = 100; i <= 200; i++){ setTimeout(function(){…
-
0
votes1
answer56
viewsA: PHP | MYSQL Error: Operand should contain 10 column(s)
CASE WHEN (SELECT * FROM sala1 WHERE aluno = '$AlunoInformado') = 1 THEN END ELSE I believe your CASE WHEN is wrong, because you are putting END (the command that terminates CASE) before your ELSE.…
-
-1
votes2
answers97
viewsA: Error with select in mysql
Try it like this, using the fetch_all: $mysqli->query(" SELECT SUM(a.qtd) FROM produtos_pedidos a, pedidos b WHERE a.id_pedido = b.id and (b.status = 0 or b.status = 4 or b.status = 7) and…
-
2
votes0
answers153
viewsQ: Database can overload like that?
This explanation there is no need for code, it is more a question of database logic even. What is happening: I have an application using Codeigniter and Mysql, and it has 4 actors, but in one of…
-
1
votes2
answers49
viewsA: Comparing variables in a query
I think the problem is that you are passing the variable even after you have already set the parameter (null or dtnasc): "(strcmp($dtnasc, "") == 0 ? 'null' : "'" . $dtnasc . "'")" '$dtnasc', I…
-
1
votes2
answers584
viewsQ: Find out if anything has changed in the form using jQuery
Hello, I would like to know if there is any method in jQuery that returns if there have been changes in the initial form or not. For example, I have 3 empty fields, and as soon as I modify some of…
jqueryasked Jonathan Machado 283 -
5
votes2
answers466
viewsQ: Find out which table the data is from, in a Union
Hello, I have a php system, using codeigniter, and in it runs the following command: $data['dados_tabelas'] = Tabela1::find_by_sql('SELECT * FROM tabela1) UNION (Select * from tabela2)'); That’s…
sqlasked Jonathan Machado 283