Posts by Rafael Gonçalves • 106 points
13 posts
-
1
votes2
answers165
viewsA: GROUP BY WITH ORDER BY
Solution based on post comment: SELECT * FROM tabela WHERE codigo IN (SELECT MIN(codigo) FROM tabela GROUP BY tipo) ORDER BY codigo ASC
-
1
votes2
answers165
viewsQ: GROUP BY WITH ORDER BY
How to make a GROUP BY in the MySQL respecting the results obtained with the ORDER BY Ex: ID(Primary Key) | nome | codigo | tipo 1 | Item E | 5 | 1 2 | Item D | 4 | 1 3 | Item B | 2 | 1 4 | Item C |…
-
2
votes0
answers39
viewsQ: How to use two arrays to make a query in the bank?
I’m using the Google API, the Cloud Vision, to analyze an image and return me through the labels, which brand/model of a car, for example. Using the image below, I have the following feedback: [car,…
-
-1
votes2
answers539
viewsA: HTML5 Drag and Drop
Problem can be solved using the example below: Original source: http://embed.plnkr.co/WcIZlD/ $(document).ready(function() { $('.box-item').draggable({ cursor: 'move', helper: "clone" });…
-
1
votes0
answers58
viewsQ: How to calculate two dynamically generated fields by the append() method?
I’m creating a sales screen, where I have a form with 4 fields: PRODUCT AMOUNT PRICE TOTAL The amount of times these fields will repeat will depend on the need to add more items. Using JS I can get…
javascriptasked Rafael Gonçalves 106 -
0
votes2
answers84
viewsA: Error saving Facebook profile image via PHP SDK
When changing the basename() function, which looked for the image name by a name, the image was correctly saved. thus remaining $imgUrl = "http://graph.facebook.com/ID FACEBOOK/picture?width=300";…
-
0
votes2
answers84
viewsQ: Error saving Facebook profile image via PHP SDK
Good afternoon! I am using the Facebook SDK to login to my site, I can return the data, including the link of the profile photo, but I can’t save the image, the following error occurs: PHP Error was…
-
1
votes0
answers727
viewsQ: Searching for data in the Tmdb API
I have a website about movies made in PHP (codeigniter), I intend to use the site API themoviedb.org to search and show the information to users. And the first time I use an API and would like to…
-
0
votes0
answers28
viewsQ: Loading multiple VIEWS in Codeiniter
Since Header and Footer will be the same on all pages, there is a downside to calling them in the same Controller? EX: $this->load->view('v_header', $variaveis);…
-
0
votes1
answer147
viewsQ: Make upload optional
I am using the Codeigniter File Upload Class in a form to send a photo, but by default the field is required, I wonder if there is how and if you have how to change the rule, because there will not…
-
0
votes2
answers274
viewsQ: Title in url with codeigniter
I searched several places to pass a post title in the url using codeigniter, ex: http://Sirc/filmes/listar/clube-da-luta The only way I could so far was to use the Helper url_title(), but it’s time…
-
0
votes0
answers92
viewsQ: Show calendar generated with JS showing DB information
I am generating a calendar and entering the events with information taken from the database. When select brings only one result it is displayed normally, but when there is more than one the calendar…
-
2
votes1
answer8914
viewsQ: pass variables from AJAX to PHP
I’m trying to pass values through two variables in AJAX to a PHP file, but it’s not working. if I put data: { idUsuario: "5", idEscolha: "1", } right. What is wrong? $(document).ready(function(){…