Posts by Filipe Moraes • 8,737 points
259 posts
-
1
votes1
answer480
viewsQ: Load part of the page in AJAX
I’m doing an app. The application has a top, side menu and contents according to the selected menu. In the content the user can add, remove, change and my question is: for example, when adding a new…
-
0
votes3
answers2936
viewsA: How to automatically fill in a field?
The best thing to do is create a table in the database and insert all postal codes with the respective districts and municipalities. In HTML do the following, after the client fills the field use…
-
0
votes3
answers2007
viewsA: Select records from a table where the record of a related table is a specific value
Use the Inner Join. SELECT c.* FROM chamados c INNER JOIN atendimentos a USING(id_chamado) WHERE a.status <> "Fechado"; In the above case, in the two tables there must be the "id_called" field…
-
2
votes2
answers222
viewsA: Problem of cursor positioning
See the error log, you are referencing a field that does not exist in the table: 03-20 10:35:25.870: E/data(914): Error while searching contacts: android.database.sqlite.SQLiteException: no such…
-
1
votes5
answers1944
viewsA: PHP MVC - Adding CSS, Images etc
We have here in the company an application in the MVC model. What we did was create a php file with all the settings and one of them is the folder with the styles. <?php…
-
13
votes3
answers10218
viewsA: How to create a real-time notification system similar to Stack Overflow?
Dude, NAY use ajax with setInterval. See, imagine that every 1 minute the system will make a request to the server and return a response to the browser, even if there are no changes in the…
-
4
votes7
answers6999
viewsA: Split() integer with Javascript
No need to convert to string if the value is numeric. valor = 19.90; aValores = [parseInt(valor),Math.ceil((valor % Math.floor(valor)) * 100)];
-
1
votes1
answer150
viewsQ: Interface to build relationships between tables
I am developing an application where basically the user will interface between Mysql tables. For example: table A (Products) table B (Photos) Table C (Price history). Basically in the application…
-
4
votes3
answers529
viewsQ: 403 Forbidden when saving data from a form
I have a field in the form that allows html tags. If you insert the following line into the field and submit the form, it returns error 403 Forbidden: <span style="display:…