Posts by Geovane Alves de Freitas Junio • 29 points
6 posts
-
-2
votes1
answer260
viewsA: Multiply two columns in a select With Groupby
With the WITH clause you can create a common expression at runtime, it is as if you create a view at the time of executing your query, which makes it much faster than a real view. For example in…
-
-2
votes1
answer803
viewsA: Getting information from an array within a foreach - PHP
Man! So if you’re using Laravel, semantically speaking, the best way to do this would be to create a Model and a client Migration, so you call a get() or find() method of the client class with the…
-
-1
votes5
answers195
viewsA: Sending view string to controller via Ajax. Codeigniter, javascript and php
Man says send it this way: var formData = new FormData(); formData.append('id', 14); formData.append('name', 'teste'); formData.append('valor', '1.4');…
-
0
votes2
answers1628
viewsA: $. ajax -> I’m lost with this error "Uncaught Referenceerror: $ is not defined"
You put <script rsc="http://code.jquery.com/jquery-2.0.3.min.js" type="text/javascript" ></script> the correct is <script src="http://code.jquery.com/jquery-2.0.3.min.js"…
-
-1
votes1
answer405
viewsA: Fill a select according to another select with Jquery
Man, I had several problems also when trying to use this JSP padding, the JVM turns your page into JSP in a Servlet and it seems to mock the whole javascript. The best thing to do is to request your…
-
0
votes1
answer38
viewsA: Redirect 301 only in case of direct access to the file
You can set a flag in your session too, I don’t know what language you are using, but for example in PHP, on the download page you can put a $_SESSION['autorizadownload'] = true; and on the file…