Interesting questions
-
1
votes1
answer332
viewsFatal Error - Allowed Memory - PHP
I have the following problem, when having run my script via browser it works smoothly and very fast, but when trying on CMD it consumes all memory and error. Via browser:…
-
0
votes2
answers54
viewsDo not show inactive product in search of products
I have a code snippet that does a search to my BD by the term, until everything correct, but I have products that are inactive and should not be caught and are appearing, the code is like this, I…
mysqlasked 11 years, 7 months ago adventistapr 5,498 -
2
votes2
answers39
viewsHow do I display an Object type variable on the screen through Alert?
In Alert the following message appears: [Object Object] Follows code below: let carro = { modelo: "corsa", marca: "chevrolet", aVenda: true }; alert(carro);…
javascriptasked 6 years, 4 months ago Danilo 21 -
0
votes1
answer152
viewsError opening dialog with recyclerview, when adding click on list item
Error: RecyclerView﹕ No adapter attached; skipping layout I saw several items really similar to this error here, but none solved my problem. The list is loaded normally, only after adding the…
-
2
votes2
answers5057
viewsDate angle filter with mask 'dd/MM/yyyy HH:mm:ss'
I’m applying a filter on my page, it was working perfectly, only when I applied the mask to stay in the format dd/MM/yyyy HH:mm:ss he stopped filtering correctly, he understands that there is…
-
0
votes1
answer104
viewsjavascript - show/Hide menu does not work
function dpdShowHide(){ var orgBtn = getElementById('organizador'); var dpdOrg = getElementById('org-dpd-list'); if (orgBtn !== false) { dpdOrg.visibility('none') } else{ dpdOrg.visibility('block')…
-
2
votes1
answer776
viewsTotal number of elements in a stack
I want to know how to return on the screen the total number of elements in a stack. For example: I have an array stack of size 10 and stacked 6 elements in it, will have to return me the total of 6…
-
1
votes2
answers349
viewsselect_collection on Ruby on Rails
If I want to return the options of Active and Inactive so that I select, I use the following code in the view, then it returns the 2 status: <%= select(:student, :status, Situation.all.collect {…
-
2
votes1
answer77
viewsExplanation about PHP code
Good evening, someone with more affinity in PHP could explain the following code? PS: I am starting the studies so I already apologize if the doubt is frivolous. <?php if (isset($_GET['pagina']))…
phpasked 8 years, 9 months ago Leonardo Henrique 127 -
-1
votes2
answers172
viewsHow to display a modal(bootstrap) stating that the input type="file" cannot be null?
I have an input: <input id="imagens" type="file" multiple name="file" accept="image/x-png, image/gif, image/jpeg" required /> And the following javascript code: var fileUpload =…
-
1
votes2
answers127
viewsHow to remove only the horizontal scrollbar from the page?
I am creating an application in Electron and need to remove from the page a scrollbar horizontal. I tried using the CSS code below, but it also removes the scrollbar vertical. ::-webkit-scrollbar {…
-
2
votes1
answer1848
viewsConvert String to MD5 with Flutter
I have an application in Flutter,and I’m trying to convert my Password to MD5 on the login screen, I found some other methods but none served me. I’m trying to use final md5 = new MD5._() to convert…
-
2
votes0
answers120
viewsLogical Doubt Generation of Laravel Rounds
I have a championship management system in Laravel. The system works perfectly, but I’m having problems generating rounds, I need that regardless of the number of groups enrolled, the system can…
-
6
votes1
answer1597
viewsHow to make an http request in Angular, and have functions that return all JSON elements or just one passed by parameter?
I’m new to Angular and Ionic, and I want to build a Factory that gets a JSON from googleapis, and contains two functions, one returns all elements, and the other returns the element that is passed…
angularjsasked 11 years ago marcosmfjunior 153 -
0
votes1
answer40
viewsTake data from array
Good morning I have the following array Array ( [0] => Array ( [ID] => 2 [UltimaAtualizacao] => 2017-04-20 16:15:00 [DataEntrada] => 2017-04-20 [Estado] => Finalizado [DataSaida]…
arrayasked 9 years, 6 months ago Emanuel Trigo 1 -
2
votes3
answers869
viewsQuestions to send data via POST
Hello, I’m trying to send over $_POST some data for validation and later insertion in the database, what I could do in another project exactly the way I’m trying to do now, but I’m not getting it.…
-
-1
votes2
answers225
viewsDifficulty writing in cloud firestore
I managed to configure my android project to firebase, but when I test the firestore cloud nothing happens. I’m trying to write a text in the database,. main: import 'package:flutter/material.dart';…
-
1
votes1
answer1176
viewsWordpress: Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 2 bytes)
Does anyone know how to fix this error? I’ve already set up the wp-admin.php file and . htaccess, but it still has the same error
wordpressasked 9 years, 4 months ago Mr Genesis 464 -
0
votes1
answer28
viewsworking with dates
Could you help me please, I have a column service date that based on it brings me the last day of that month and I calculate that data_final_month + payment deadline and from there I can know what…
-
2
votes3
answers516
viewsColumn outside the SELECT WHERE condition
I need to make a query that returns a column with the amount of orders that the customer made within the period past in the WHERE and put together another column with the total orders that the…