Posts by Dan Even • 149 points
20 posts
-
0
votes1
answer47
viewsQ: How do not have a miss click on the next screen?
I’m having a little problem with a quiz application. when the user clicks on the button the next question comes. put a delay of 1 sec. However, if the user clicks 2x on the button within this delay…
-
1
votes1
answer713
viewsQ: How to make an application in two languages by changing the language in the Settings menu? Android studio
I would like to do this manually via a click, Portuguese or English language. and search for the correct string. public Boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().…
-
2
votes0
answers81
viewsQ: How to paste an excel list to android studio and get organized with break lines?
List in excel Relacionar o item Cidade Relacionar o item Afonso Bezerra Alexandria Alexandria Almino Afonso Alto do Rodrigues Angicos Angicos Apodi Apodi How to do this in xml? Because as a long…
-
-2
votes1
answer23
viewsQ: Wrong code error in setType " non-static method setType(String) "
android.support.design.widget.FloatingActionButton android:id="@+id/floatingActionButton" android:layout_width="wrap_content" android:layout_height="wrap_content"…
-
1
votes1
answer390
viewsQ: Get the id of the maximum value
In a Mysql table id valor 1 5 2 15 3 7 I want to take the value of the "id" that has the highest value in the value field. I want to return in this case the value 2.…
-
0
votes1
answer546
viewsQ: how to pass many controller variables to the view in the Laravel
I want to pass these variables, but it seems that quantity prevents me, there is another way? return view('pontuacao')->with('somas', $somas[0]->p)->with('somas1',…
-
1
votes3
answers1096
viewsQ: How to find out the PHP version of a standard project?
To find out the php version of the Laravel project, have some command in cmd?
-
0
votes1
answer144
viewsQ: How to get the largest sum on a table?
have a table id produto vendas data 1 laranja 4 16-10-2016 2 cenoura 3 16-10-2016 3 cenoura 6 17-10-2016 4 laranja 5 17-10-2016 5 laranja 1 18-10-2016 6 laranja 1 19-10-2016 the sum of oranges in 11…
-
0
votes1
answer112
viewsQ: Paginate Doubts Arable
I turned that code 1 into code 2 1)//$palpites=DB::select("SELECT * FROM palpite WHERE id_u='$id' order by id_c desc "); 2) $palpites =…
-
0
votes0
answers52
viewsQ: How do I make a check box "checked" when I enter values in 2 fields dynamically?
How do I make checkboxes mark when the user enters values in the two fields? <td class="col-xs-2 col-sm-2 col-md-2 col-lg-2" ><input type="number" max="20" min="0" size="1" maxlength="2"…
-
0
votes1
answer788
viewsQ: How to run a Function in cron job?
I wonder how and what is the best way to do a cron job, if I write it as a direct Function in cron? I’d like to do it every day at 6:00. public function atualizarpontuacao(){ $palpites =…
-
1
votes2
answers331
viewsQ: Print a sum in the view
In the Mysql Workbench the result comes out, but how to print in View? Errorexception Array to string Conversion public function listadepontos() { $id = auth()->user()->id; $somas =…
-
1
votes1
answer28
viewsA: Update table in wrong format
update palpite set pontuacao='4' where (id='1' and diadojogo > '2017-09-26');
-
1
votes1
answer28
viewsQ: Update table in wrong format
update table set pontuacao='$var1' where id='1' AND diadojogo > '2017-09-28'; update table set pontuacao='$var1' where id='1' AND diadojogo > 2017-09-28 ; update table set pontuacao='$var1'…
-
1
votes2
answers1527
viewsQ: How to treat Queryexception SQLSTATE error[23000]: Integrity Constraint Violation: 1062 Duplicate;
The id is auto increment, but the id_uc is Unique, just not to enter an identical id_uc. I want you to return to view a message. $storm =new ListaStorm(); $storm->id = $id; $storm->id_uc =…
-
0
votes1
answer273
viewsQ: Foreach with two bd lists. Laravel Street
I read some articles and saw this way, but it is not correct giving the following error: (1/1) Errorexception Undefined offset: 1 @foreach($palpites, $confrontos) as ($p, $c)) <tr> <td>…
-
0
votes1
answer43
viewsQ: In this Laravel Validator, what is the right code with variable?
In this Validator of Laravel, what is the right code with variable? public function salvar() { $n =Request::input('campos'); for($i=1; $i < $n; $i++){ $pontosa =Request::input('pontosa'.$i);…
-
0
votes0
answers119
viewsQ: Laravel, Validator with multiple Fields and {{old}}
I have this code with $n form Fields. I’m not getting to use Validator;{ public function salvar() { $n =Request::input('campos'); for($i=1; $i < $n; $i++){ $pontosa =Request::input('pontosa'.$i);…
-
1
votes1
answer2148
views -
2
votes1
answer879
viewsQ: How to search data from a table using other reference?
I’ll give you a simple example... I have a table 'products' that has in the columns, id, product name, value. I have another table 'users' columns, id, name. And another table 'buysdosusuarios' id,…