Posts by Maicon e Nanda Blumenau • 442 points
22 posts
-
2
votes1
answer63
viewsQ: Total sales per month grouped by seller
I need to bring a list of executives and total sales per month, all regardless of whether they sell in the month or not. For years I am focused on front-end and I have never done anything with sql,…
sqlasked Maicon e Nanda Blumenau 442 -
0
votes0
answers56
viewsQ: HTTP request error in Chrome and works on Edge and Firefox
I’m having a problem making an HTTP request with Angular 4, Edge and Firefox works without any problem, but in Chrome gives error in Post, Options passes quietly but the Post does not pass, in the…
-
2
votes2
answers18748
viewsA: convert json to javascript array
Hello, you already tried JSON.parse? It goes something like this: var jsontext = '{ "name":"John", "age":31, "city":"New York" }'; var contact = JSON.parse(jsontext); console.log(contact); With this…
-
1
votes2
answers74
viewsA: Problem passing value by URL
<div id='navbar' class='navbar-collapse collapse'> <ul class='nav navbar-nav'> <li class='dropdown'> <a href='#' class='dropdown-toggle' data-toggle='dropdown' role='button'…
phpanswered Maicon e Nanda Blumenau 442 -
0
votes0
answers53
viewsQ: Error requesting Cakephp internal pages?
I got a problem with mine CakePHP, I’m completely new to this framework and my erro is as follows: 2017-05-01 10:09:45 Error: [MissingControllerException] Controller class PagesController could not…
-
0
votes2
answers93
viewsA: What is the right way to configure the body of the page before you start styling the other elements?
To <div id="tudo"> can yes be used as page body for who knows you make the site responsive and everything inside it too. And another thing that can be done is centralize the DIV to leave the…
layoutanswered Maicon e Nanda Blumenau 442 -
1
votes2
answers1038
viewsA: Are hybrid apps safe?
What can be done is a very quick google search: How to protect javascript code. I will not put response link from another site but google search will always bring expected results.…
-
1
votes4
answers504
viewsA: Filter numbers not yet registered via SQL
It would even be simple to do that: Do a search in the same table before adding a new record and take the return and add the code in an array and then add compare if the code entered by the user is…
-
1
votes4
answers2941
viewsA: Split String using comma as parameter
You can use this format as well: String[] separated = CurrentString.split(","); separated[0]; separated[1];
-
6
votes3
answers55998
viewsA: Run php function with onclick
What you can do is this: <a href="pagina.php?id=1">Teste onclick</a> Ai in PHP do so: <?php if(isset($_GET['id']) == 1){ testeOnclick(); } ?> It would be a simple way to do it, but…
-
0
votes4
answers572
viewsA: Upload Ajax - Php
In your form you added this here? <form action="" method="post" enctype="multipart/form-data"> This makes the upload work properly.
-
0
votes2
answers1675
viewsA: Sending an email programmed with PHP
What I would do is the following, create a date field in this table and this field will receive that date that will be to define the sending day, create a basic PHP file and using only PHP without…
-
2
votes5
answers26037
viewsA: Accentuation in the JSON
A simple solution would be to do this: utf8_encode($texto); This causes it to convert to utf8 and its string already has the correct accent.
-
2
votes2
answers372
viewsA: Calculate value according to selected dates
To calculate the days is like this: function diferencaEntreDias(dataIni, dataFim){//recebe a data no formato MM/dd/yyyy var ONE_DAY = 1000 * 60 * 60 * 24;//Variável que representa um dia em…
-
3
votes2
answers880
viewsA: How to put animation "wait" on Android?
There’s the solution in code: private class uploadPhoto extends AsyncTask<Void, Void, Void>{ private ProgressDialog dialog; protected void onPostExecute(Void dResult) { dialog.cancel(); }…
-
1
votes3
answers235
viewsA: how to treat different index/templates for the same site?
What I do is I search the database and I take what theme the user is using and I do this: switch ($retornoBanco) { case 0: include="tema1.php"; break; case 1: include="tema2.php"; break; case 2:…
-
3
votes2
answers12276
viewsA: What is the space limit of each database in mysql
It is a very complicated answer because it depends a lot on the type of record you will add, the field sizes and a lot of other things that can interfere in this space occupied in Mysql. In this…
mysqlanswered Maicon e Nanda Blumenau 442 -
0
votes3
answers268
viewsA: Use reference in MYSQL query condition
An example that can help you is this one: select * from (select emp.codemp from empresa as emp) as cod where cod.codemp = 1; Any doubt just warn.
mysqlanswered Maicon e Nanda Blumenau 442 -
0
votes2
answers1494
viewsA: Save part of a text in a Selenium IDE variable
What you can do is add a limiter to this string for example a - or | and in the code do the following: store | Criado por Comprador em | 14/05/2015 - 16:18 | string store | 0 | delimiter1 store |…
seleniumanswered Maicon e Nanda Blumenau 442 -
2
votes2
answers1494
viewsA: Save part of a text in a Selenium IDE variable
There are two links that can help you, take a look at them: https://stackoverflow.com/questions/12537620/is-there-a-way-to-split-a-string-into-an-array-in-selenium-ide…
seleniumanswered Maicon e Nanda Blumenau 442 -
0
votes1
answer727
viewsA: Database does not show the information
Make the connection first and then the search, try it like this: < ?php $host = "localhost"; $bd = "alunos"; $user = "root"; $senha = ""; $conexao = mysql_connect ($host, $user, $senha) or die…
-
0
votes1
answer669
viewsQ: Android - Listview with image via url, how to add one?
I’ve done several searches on how to add an image to an android listview item, I’m doing everything via JSON and by Asynctask but I’m having a hard time adding this image, someone has an example or…