Posts by Rafael Withoeft • 2,287 points
57 posts
-
1
votes4
answers146
viewsA: sql - SELECT for recent data only
Well I saw your question again, and the scenario below does not fit what you need... Luis' answer will better solve your problem. I do not use Postgresql, but I believe it is something very similar…
-
4
votes3
answers3392
viewsA: How to use static and global variables in PHP?
You can use reference. Example: <?php function foo (&$var) { $var++; } $a=5; foo ($a); // $a é 6 aqui ?> Source: http://php.net/manual/en/language.references.pass.php What references do?…
-
1
votes3
answers1606
viewsA: How to request via post for action by AJAX?
If you have the latest versions of jQuery try using the latest version for AJAX declaration: $.ajax({ type: 'POST', url: 'SuaURL', data: { valor1: valor1, valor2: valor2 } }).done(function (data) {…
-
1
votes2
answers1076
viewsA: Stylize a return message
This is an example of a javascript function I use to send messages Library Toastr http://codeseven.github.io/toastr/ function sendToastr(mensagem, tipo) { toastr.options = { 'closeButton': true,…
cssanswered Rafael Withoeft 2,287 -
8
votes1
answer1280
viewsA: Save full path in the bank or just name with extension?
In my opinion what would make it easier for maintenance would be to store only the name.extension.; Let’s look at a little case: You decide to abruptly modify the current system, changing several…
-
2
votes1
answer1547
viewsA: IEC (INSS Specific Registry) Query for Data Return
As requested, it follows resolution of the problem. Remembering the use of external classes: Guzzlehttp: http://guzzle.readthedocs.org/en/latest/ Phpquery: https://code.google.com/p/phpquery/ /** *…
phpanswered Rafael Withoeft 2,287 -
1
votes1
answer1547
viewsQ: IEC (INSS Specific Registry) Query for Data Return
I am trying to develop a query class that will return the data available by the IEC (INSS). So far I have the following codes: /** * Retorna os parâmetros necessários para a consulta; * @throws…
phpasked Rafael Withoeft 2,287