Posts by Mauro Santos • 672 points
40 posts
-
0
votes3
answers2419
viewsQ: How can I calculate elements in Javascript
I need to take the amount id="valorPorcentagem" which is the percentage value with the (id="valor_vendedor") and automatically add to id="comissao". Whereas: valorPorcentagem / 100 x valor_vendedor…
-
0
votes1
answer155
viewsQ: How not to repeat the same Input request
I need to create a page where I can choose a PLAN (or more) and a INSTALLMENT for each chosen plan. At the moment, when I choose the foreground, it is interfering with the options available to…
-
0
votes2
answers193
viewsQ: How to take the value of POST and save to the bank
Good afternoon friends, I’m not able to save the second INSERT in the bank, because when I save, it goes as array, how can I solve this problem? Image of the View: Picture of the Bank Code…
-
3
votes1
answer191
viewsQ: Which correct way to update
Friends this mistake (SQLSTATE[HY093]: Invalid parameter number: parameter was not defined), what is the correct way to apply the UPDATE according to the code below? Campos DB id_seguradora…
-
1
votes1
answer44
viewsA: What is the correct form in the return of treatment
I was able to solve it like this: It turns out I was always getting the next index, so when I got to the last index, it played for +1, and this index didn’t exist. <option value="<?php echo…
-
1
votes1
answer44
viewsQ: What is the correct form in the return of treatment
Good afternoon friend, I am with a wrong treatment and I would like to solve. I am not being able to see the information. Code line <option value="<?php echo $results[0]['id_vendedor'];…
-
4
votes1
answer134
viewsQ: Which correct way to add two fields
Good evening friends, what is the correct way to add up these two fields valuated and adherence and display the total value in the input. Membership = 3,500.33; Dependants = 90.33; Total Correct:…
-
0
votes2
answers497
viewsQ: Recording data from a SESSION in the BD
I would like to add in the field registered the functionname logged in to database. <?php require_once("../../../session.php"); require_once("../../../class.user.php"); $auth_user = new USER();…
-
-3
votes1
answer64
viewsQ: Error when displaying the sum in a SELECT
I’m not getting the total amount. View Bench Values that are in the bank: R$ 70,88 R$ 70,88 R$ 70,88 Value that appears R$ 210 Value that has to appear R$ 212,64 Code <?php $numerocontrato =…
-
-4
votes1
answer86
viewsQ: How can I do the foreach correctly
Good morning, how can I do this foreach correctly, because I’m not getting to do UPDATE in the tables dependent, dependent, dependent, date-dependent, planodependent, accommodating, codependent and…
-
1
votes1
answer88
viewsQ: How do I visualize responsible with dependents
Man select is wrong. How do I view this user’s dependents: I have 1 user: (Mauro Santos) and 2 dependents: (Thiago and Dhalila), how do I view on view. Select SELECT * FROM cad_lideranca WHERE…
-
1
votes1
answer56
viewsA: Update apps by Android Studio
Go to build.Radle (Module:app) and change the following lines: If your app has: defaultConfig { versionCode 1 versionName "1.0" } Switches to: defaultConfig { versionCode 2 versionName "1.1" } Then…
-
1
votes1
answer123
viewsQ: Sum between the value of inputs failed in certain cases
I cannot add the values and put the mask correctly between the inputs. For example, I am adding the following values to each input: Input from Membership Value: 1.300,44 Input 1 of Dependent Values:…
-
3
votes1
answer368
viewsQ: How do I put mascara on input (Total Value)
Script Membership Value function mascara(o,f){ v_obj=o v_fun=f setTimeout("execmascara()",1) } function execmascara(){ v_obj.value=v_fun(v_obj.value) } function mreais(v){ v=v.replace(/\D/g,"")…
-
5
votes2
answers4753
viewsQ: Adding values between html and javascript inputs
Dear friends, I am trying to add sum between html and javascript inputs, but with this example, I was only able to put in the html input. How do I implement the javascript input and add the value…
-
3
votes2
answers1198
viewsQ: Dynamic tables with Jquery, Javascript and Mysql
Good afternoon friends, I’m having a problem, I’m not able to register all users in BD, only only register the last, how can I solve this problem? Index <form method="post"…
-
2
votes1
answer853
viewsQ: Viewing current month birthday in Fullcalendar
I have a database with a date in the field start, would like to display only the current month’s birthday fullcalendar, but I’m having two difficulties: select only the current month birthday show…
-
-3
votes1
answer4148
viewsQ: How to put mascara in Wordpress contact-form-7?
I can’t seem to put a mask on contact-form-7 of Wordpress 4.5.3.…
-
0
votes1
answer171
viewsQ: How do I get my images to fill any canvas in css
I’m not able to fill the entire css screen with my images. body { padding:0; margin:0; } *{ list-style:none; } /* Fazendo reset */ a{ text-decoration:none; } /* Links sem efeitos */ /*…
cssasked Mauro Santos 672 -
2
votes1
answer93
viewsQ: How can I view my instagram feed without caption
With this example I am viewing my feeds only with caption, but when I do not put caption appears nothing. var token = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', userid = XXXXXXXXX, num_photos = 10;…
-
0
votes1
answer184
viewsA: I’m not being able to show my instagram feed
I managed to solve only a part, because I do not want to show by #hashtag but by user: $(function() { //Set up instafeed var userFeed = new Instafeed({ get: 'tagged', target: 'instafeed', clientId:…
-
1
votes1
answer184
viewsQ: I’m not being able to show my instagram feed
Good afternoon friends, do not understand why my page not show my instagram feed, someone can help me? This is the error shown: Instagram: The access_token provided is invalid. Code in JS…
-
5
votes2
answers2074
viewsQ: Checking remaining days between current date and contact deadline
Good afternoon everyone, as per the code below, I am not being able to check the remaining days between $data and $prazocontact. $consulta = mysql_query(" SELECT s.id_cliente, p.nome_servicos,…
-
1
votes1
answer211
viewsA: Dynamically add sql query value in variable
Problem solved, added the following lines: In SQL queries I added another; INNER JOIN porcentagem AS p ON f.id_porcentagem = p.id_porcentagem And below the while I added: $percentual =…
-
0
votes1
answer211
viewsQ: Dynamically add sql query value in variable
I have a table (employees), where I want to take the value of id_funcao, id_percentage and put in this variable $percentage. Not only do I want to put the 30%, but the values of the Percentage…
-
-2
votes1
answer23
viewsQ: Friends, how do I view only one user with this rule
I would like to take the user id and price related to that user and just show a result referring to this user. Ex. I just want to see Mauro. <?php // Conectando ao banco $db_conx =…
-
0
votes0
answers51
viewsQ: How do I inform if the user already exists when I press the save button?
How do I press save button and inform if user already exists. public void salvar(){ String comando = ""; if (this.getId() == -1){ comando = String.format("INSERT INTO cadastro (nomedousuario, senha)…
-
1
votes0
answers140
viewsQ: Search filtering Yii Start and End Date
How you do a Start Date and End Date search. I’m using the Yii Framework. Can someone help me? I’m not getting the date right.…
-
1
votes1
answer51
viewsQ: How can I compare the attribute?
How can I compare >0 or <0 between these attributes in Yii? [ 'attribute' => 'gross_total', 'header' => 'ENTRADAS' ], [ 'attribute' => 'gross_total', 'header' => 'SAÍDAS' ],…
-
0
votes2
answers94
viewsQ: With this rule below, how do I show the first and last user name in the database?
Inside the model, how do I show the user name: Example of the name that is in DB: José Alberto da Silva Nogueira. I would like you to show only José Nogueira. public function getNome(){…
-
4
votes1
answer53
viewsQ: With this rule below, how do I show the user’s first and last names in the database?
Example of the name that is in DB: José Alberto da Silva Nogueira. I’d like you to just show José Nogueira. <?php if(!Yii::$app->user->isGuest) echo…
-
-1
votes1
answer81
viewsQ: According to this rule, how do I click the button (BACK) and save the dates I chose?
public class Calendario extends AppCompatActivity implements View.OnClickListener { Button voltar; com.prolificinteractive.materialcalendarview.MaterialCalendarView calendarView;…
calendarasked Mauro Santos 672 -
1
votes1
answer115
viewsQ: With this rule, how do I view the point closer to my location
Button button = (Button) convertView.findViewById(R.id.buttonComoChegar); button.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { String latitude =…
-
1
votes0
answers30
viewsQ: Using this rule, how do I delete all (Descriptions) from Listview
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_especialidades); Integer[] imgid={ R.drawable.ic_plus_white,…
-
1
votes1
answer1588
viewsQ: How to open the Google Maps app via Intent at a given Latitude/Longitude?
Using this rule I can view the database information. I want to put a button to get the latitude and longitude of the database for when click on it open google maps. public class UsuarioAdapter…
-
1
votes1
answer49
viewsQ: I can’t see Listview
# import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import android.view.View; import android.widget.Button; public class…
-
0
votes0
answers120
viewsQ: I would like help so I can log in using Cpf or cnpj
<?php // *** Validate request to login to this site. if (!isset($_SESSION)) { session_start(); } $loginFormAction = $_SERVER['PHP_SELF']; if (isset($_GET['accesscheck'])) { $_SESSION['PrevUrl'] =…
phpasked Mauro Santos 672 -
-3
votes1
answer109
viewsQ: I’m in trouble, I want to encode the new code for utf-8 and I’m not getting it
// CODIGO ANTIGO QUE NAO ATUALIZA, MAS UTILIZA UTF-8. Cache cache = AppController.getInstance().getRequestQueue().getCache(); if (cache.get(URL_FEED) != null) { // fetch the data from cache try {…
androidasked Mauro Santos 672 -
0
votes1
answer433
viewsQ: How do I update my Android JSON Parsing using Volley
I’m having a problem, I’m new in development for android, I’m having a question. My app is searching for a file. json on my computer, only when I change a word and open my emulator with the app it…
-
1
votes1
answer1792
viewsQ: Run another application (maps) in my menu
Good morning, I am new in the android world, I would like to know how to run the application google maps just by pressing my button? I want to implement my coordinates and reach the other registered…
androidasked Mauro Santos 672