Posts by Paulo Rodrigues • 128 points
7 posts
-
0
votes1
answer97
viewsA: Add values from a table when the client is the same
This is pseudo code: $array = []; $account = Client::with('users')->orderBy('id', 'desc')->get(); $length = count($posts); $user = new Controller(); for($i = 0; $i < = $length ; $i++){…
-
0
votes2
answers48
viewsA: How to recover the last payment?
Don’t use max() Utilizes the last_insert_id() : Reason: https://stackoverflow.com/questions/8345399/is-it-conceptually-right-to-do-a-select-maxid-etc-for-finding-the-last-insert Yes, there is some…
-
0
votes2
answers1721
viewsA: How do I know if the database connection was successful?
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Tutorial.SqlConn; using…
-
0
votes2
answers2838
viewsA: Dropdown menu with javascript
Try: $(document).ready(function() { $('#menu-icon').click(function() { $('.nav-menu ul').toggleClass('visible'); }); }); <!-- my code --> <div class="header-nav"> <nav…
-
0
votes1
answer50
viewsA: Problem with SQL (duplicate addition)
The best solution would be to use last_id_inserted and then use this id to query existing relations. $query =" Insert into bid_account (user_id, bidpack_buy_date, bid_count, auction_id, product_id,…
-
0
votes1
answer84
viewsA: Array list does not store data
Diario diario = null; for ArrayList<Diario> arrayListDiario = new List<Diario>(); if(arraytListDiario.size() == '0') else insertUser();…
-
1
votes1
answer278
viewsA: Put Firebase link on each button of the app on Android
Puts in: @Override protected void populateViewHolder (ImageViewHolder viewHolder, Image model,int position) { viewHolder.setTitle(model.getTitle());…