Posts by Vitor Braga • 132 points
13 posts
-
-1
votes2
answers90
viewsA: How to use a Cordova plugin in my Ionic 3?
The Cordova plugins are only accessed through a device... That is, if you are testing through the browser it will not be possible to access it.. In the documentation search on the property ready I…
-
1
votes1
answer53
viewsA: calculation with BD data, bring service, value and total
It took little to arrive at the right answer... You must define a variable to make the sum of the data you want... I would do so: <?php // Verifica se usuário escolheu algum número if…
-
0
votes2
answers859
viewsA: Undefined variable in Laravel 5.7
With the controller it is easier to exemplify... See if the way below solves your problem... public function update(Request $request, $id) { **$banner** = Banner::findOrFail($id); $banner->titulo…
-
0
votes1
answer339
viewsA: Ionic 3, card carousel with image and title
You can do this using only html and css, nor need javascript for it.... <style type="text/css"> .carousel { width: 500px; height: 150px; display: inline-block; overflow-x: scroll; overflow-y:…
-
0
votes2
answers657
viewsA: How to focus on a specific DIV and blur the rest
You can work with the property position and z-index CSS... By clicking on the desired element you add a 100% div with the desired background and define the position and the z-index above this div…
-
1
votes1
answer136
viewsA: How do I validate access to an API for only the licensed domain?
You can use a Header which gives access to only a few domains... The Header is the Access-Control-Allow-Origin and you can use it according to the example below... <?php $origin =…
-
1
votes1
answer23
viewsA: Toogle Select function
Do a function to set the "status_info_end" field to 0 of all array elements. You can do this with a foreach... Run it every time you click and only after running it you activate the element you…
-
1
votes3
answers374
viewsA: Transform string into json
I believe that for this would have to occur some changes. First his data would have to be an array with arrays and then you would need to create a function to convert your data in an object, always…
-
0
votes2
answers613
viewsA: Form with Ajax and PHP
Come on.... The question of not passing the data try to include a value already in the serialize, if the variable is "data" do the following: dados['userId'] = id; Now from the other item, put your…
-
-1
votes1
answer151
viewsA: Posting on the group’s wall on facebook via php
The code is explained, take a look: ` /* PHP SDK v5.0.0 */ /* make the API call */ $request = new FacebookRequest( $session, 'POST', '/{group-id}/feed', array ( 'message' => 'This is a test…
-
4
votes2
answers75
viewsA: Query with calculation returning error in condition
If you want to use the ALIAS you can use the HAVING. His logic is the same as WHERE. Thus remaining: SELECT imp_loja AS LOJA, imp_item AS ITEM, imp_desc AS DESCRICAO, imp_dias_giro AS DIAS_DE_GIRO,…
mysqlanswered Vitor Braga 132 -
1
votes1
answer222
viewsA: Align div vertically in Internet Explorer 11
Within the element: <div class="mini-ball mini-ball-top-left">1</div> I added a new div that will contain her content, getting like this: <div class="mini-ball…
-
0
votes3
answers3657
viewsA: How to group records by time range?
Come on I believe this will solve for you: SELECT * FROM visitas WHERE HOUR(data) >= 10 and HOUR(data) <= 12; SELECT COUNT(*) as nVisitas FROM visitas WHERE HOUR(data) >= 10 and HOUR(data)…