Posts by Newton Pasqualini Filho • 117 points
9 posts
-
0
votes2
answers532
viewsA: Concatenate variable with id fetched by Javascript
I’m sorry to have to say this but this application of yours is poorly structured and because of this, even answering the question, you will have other problems that you will not be able to solve. I…
-
1
votes3
answers628
viewsA: Create a custom SQL order
One possible solution would be to swap the display_order column to decimal with 1 house. So you can climb: UPDATE groups SET display_order=display_order - 1.1 WHERE id=X; So you can go down: UPDATE…
-
-1
votes2
answers1805
viewsA: How to import the current $Scope to the $uibModal?
Angular is 2 way data bind, that is, what you set in $Scope, is set buddy, until you do something to erase the data. In a nutshell, just inject $Scope into your modal controller like this:…
-
0
votes1
answer35
viewsA: function reference in php
Hello the static method must set the static property to make it visible, try so: define("LOGIN","root"); define("PWD",""); //define("DB", "pj_fatec"); define("DB", "virtual");…
phpanswered Newton Pasqualini Filho 117 -
1
votes1
answer49
viewsA: Cakebake generating invalid Controller
This is a problem caused by the differences between our language and English. In Cakephp who does this magic of automatically naming is the Inflector library…
-
2
votes2
answers390
viewsA: What types of attacks can I suffer with global variables and how to prevent
My dear, Use a good development framework and have in your hands the solution of these and many other common problems. Even with Framework you may be subject to XSS, in fact strip_tags are enough to…
phpanswered Newton Pasqualini Filho 117 -
1
votes1
answer345
viewsA: How can I get permission publish_actions from facebook?
No app can publish on behalf of the user without you having the action of the user himself requesting it. This since 2012 or 2013 no longer works, EXCEPT for applications that prove that user action…
-
2
votes1
answer997
viewsA: How to save Cookies from a remote site with Curl?
Exchange Curl for Httprequest http://php.net/manual/en/class.httprequest.php It is object-oriented and well documented, and easier to use.…
-
1
votes2
answers80
viewsA: CAKEPHP: conditions with AND
My dear collection, The way you are linking the tags is not feasible, do. Think that bringing products with mandatory A, B and C tags, would have to have subquerys: <?php $criterios = array(…