Posts by smigol • 505 points
32 posts
-
1
votes4
answers1139
viewsQ: Separating columns from a multidimensional array
In the form I have INPUT array name=INPUT_1[].. which are dynamic, cloned added other values. In the example below each INPUT has 2 values, but there can be several! Obs: PHP 5.3.8 When submitting…
-
0
votes2
answers146
viewsQ: View report separated by date groups
Staff I plan to display a report separating the results into date groups as example below | REF. | NOME | DEBITO | ===================================== | X741852 | MARIA | 2.500 | | B890656 |…
-
0
votes2
answers121
viewsQ: Create an array separated by date groups
People want to create a separate array in groups by date of the result of a query made in DB example: // [...] $sql = $this->db->query($query) or die (sprintf("Falha: %s",…
-
5
votes3
answers399
viewsQ: while list 4 in 4 result within div
How do I list the result of an sql query so that 4-in-4 line is inside a div. Ex. expected result: <div class="row"> <span>1</span> <span>2</span>…
-
1
votes3
answers407
viewsA: Keyup allow it to contain only one dot between input characters
I got a more "compact" mode similar to @Gabrielrodrigues $('input').keyup(function(e) { $(this).val(function() { var val = this.value; if (val.split('.').length > 2) val = val.replace(/\.+$/,…
-
5
votes3
answers407
viewsQ: Keyup allow it to contain only one dot between input characters
Personal how to allow it to contain only one point (.) between the characters typed in the input by checking with the jquery keyup event. Example of an exit: 000.000000 1.000 99.9.99.999 // <-…
-
3
votes1
answer183
viewsQ: GIT does not push
Guys, I don’t know what’s going on with my git, I’ve uninstalled and installed and nothing! Every time I push a push occurs the following... $ git clone https://[...]/projeto.git $ git checkout -b…
-
0
votes0
answers753
viewsQ: Datatable create and populate table dynamically with server-side paging
Personal how can I make a form submission, a Datatable is created and populated with the result of the filter made in the form and make Datatable do server-side paging. Datatable Version: 1.9.4 The…
-
0
votes0
answers136
viewsQ: Run long-term processes until the end
Personal I’m having difficulty for my application to run until the end, and it shows the whole process in real time on the screen using XMLHttpRequest | onprogress and after about just over 2hrs…
-
2
votes1
answer245
viewsA: Poser extends class not found
I managed to solve by just changing the "namespace" in the archives: app/Modulos/Mail/Google.php <?php namespace App\Modulos\Mail; use \App\Modulos\Mail\Mail; class Google extends Mail { }…
-
2
votes1
answer245
viewsQ: Poser extends class not found
How to use extends with the Poser autoloade? As it is returns me the following error: Fatal error: Class 'App\Modulos\Mail\Mail' not found in ...Google.php on line 7 Composer: "autoload": { "psr-4":…
-
1
votes0
answers392
viewsQ: Variable Slim Frameworks between Routes
How to pass result from one route to another in Slim Frameworks ex: $app->get('/rota1/:param', function($param) use ($app, $myclass) { // rotina que retornará um array $myArr =…
-
2
votes2
answers691
viewsA: Slim Framework Page Not Found / Apache2
So even after adding the AllowOverride All and restart the apache service apache2 restart did not work due to the mod_rewrite is not enabled. Solved sudo a2enmod rewrite && service apache2…
-
1
votes2
answers691
viewsQ: Slim Framework Page Not Found / Apache2
I’m using the Slim Framework managed by Composer and when typing into the URL http://localhost/app an error arises 404-Not Found, if I type http://localhost/index.php/app it works. What have I ever…
-
1
votes1
answer203
viewsQ: Error "No package dkim-milter available" Centos 5.8
I can’t install dkim-milter, I’m using Centos 5.8 x64bit [root@server ~]# yum install dkim-milter Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile * base:…
-
1
votes2
answers145
viewsQ: Concatenate letters/words if it contains "&" and there is space between them
How to concatenate letters/words if it contains "&" and there is space between them? Example: A & E COMERCIO DE ALGUMA COISA LTDA EMPRESA P & C CONSTRUCAO LTDA CAMARAO & CIA FULANO…
-
0
votes1
answer1527
viewsQ: Get field for longest date
Yesterday the guys helped me get the last status for the longest date, that is to display the status of the last modification. Now I have arisen another difficulty related to the same question but…
-
2
votes2
answers261
viewsQ: Inner Join display last status
I need to get data from 3 tables through a filter in 2 of them using the Date and Status criteria, and the Date is done in one table and the Status in another. It turns out that when more than one…
-
3
votes1
answer15992
viewsQ: Set time to expire $_SESSION
How to adjust the time to expire $_SESSION? attempts.. Include in top of files (worked on offline localhost) ini_set('session.gc_maxlifetime', 3600); // 1 hora ini_set('session.cookie_lifetime',…
-
1
votes3
answers1072
viewsQ: Regex pick certain digit size and or symbol
Personal how to pick up the digits of size 9, and whether or not there is an exclamation mark (!) at the end. Example: blabla n123456789 bla bla 78 texto... 987654321! texto qualquer 12 blaa 123 bla…
-
0
votes1
answer1571
viewsA: configure @page print css
Solved the problem was in that stretch html, body { height: 54mm; width: 101mm; font: 14px arial, sans-serif; writing-mode: tb-rl; } Corrected html, body { font: 14px arial, sans-serif;…
-
0
votes1
answer1571
viewsQ: configure @page print css
People could help me with a CSS problem ( I believe ) because I can’t solve it myself. as print below, when printing the page ALWAYS appears another blank just below. my CSS html { position:…
-
-2
votes1
answer155
viewsQ: Query calculating dates with INNER JOIN
Personal hail, Here there’s an example that a guy here from the community posted and I’m trying to adapt my needs but an error arises: #1248 - Every derived table must have its own alias My query…
-
-4
votes1
answer150
viewsQ: mysql medium time, top 10 templates
Personal as illustrated in my table below, I would like to get the following data: Time the POST spent from DATA_ENTRADA to DATA_SAÍDA Overall average time that all STATIONS take from DATA_ENTRADA…
-
1
votes2
answers193
viewsA: Error in saving dates
The problem was in importing the spreadsheet, using Phpexcel the dates in the format MM/DD/YYYY returned a value like this 41770.67140046296 the solution is in the question: Import spreadsheet with…
-
6
votes3
answers1429
viewsQ: Generate sequential number within one month
How to generate sequential numbers consisting of year, month, 5-digit sequence. where the digits are zero when changing the month? Example: 14 // ANO 11 // MÊS 00000 // SEQUÊNCIA QUE AO MUDAR O MÊS…
-
0
votes2
answers141
viewsA: Turn string to uppercase before dash
Solved function beforeDash( val ){ return val.replace(/(?:\w+-)/g, function(match){ return match.toUpperCase() }); }
-
2
votes5
answers1268
viewsA: Import spreadsheet with text format using Phpexcel
The dates only came this way 41984.69211805556 when it was 11/12/2014 // MÊS/DIA/ANO if it were 31/10/2014 // DIA/MÊS/ANO normal vineyard. Then I check if the variable has the size of a normal date…
-
3
votes5
answers1268
viewsQ: Import spreadsheet with text format using Phpexcel
How to import an excel file as cells in TEXT format code $file_tmp = $_FILES['arquivo']['tmp_name']; try { $FileType = PHPExcel_IOFactory::identify( $file_tmp ); $objReader =…
-
1
votes2
answers193
viewsQ: Error in saving dates
Following the line of Validate different date formats The function below has met my needs: function validateDate( $date ){ $europeu = date('Y-m-d', strtotime(current(explode(' ', trim($date)))));…
-
3
votes3
answers1361
viewsQ: Validate different date formats
I am having difficulty validating different date formats. I need to convert the dates to the format Y-m-d to save in the bank. The dates come like this: 11/12/2014 // MÊS/DIA/ANO 30/10/2014 //…
-
1
votes3
answers799
viewsQ: Delete Item Array
I’m trying to remove an item from a array corresponding to [NUMERO] but not working. Array: Array ( [0] => Array ( [NUMERO] => 123 [DATA] => 11/11/1111 [VALOR] => 2,22 [ARQUIVO] => )…