Posts by Italo Rodrigo • 4,344 points
275 posts
-
1
votes3
answers471
viewsQ: Delete last comma from a string
I have a string: "imagens":["upload/7057c705298193c513f07fbb8fbe2856.jpg", "upload/30c2dbcd5c890e763fab6ccfa63ab24c.jpg", "upload/40f4af351cfa1d01ca2e468965d28626.jpg", ] And I want to rule out her…
phpasked Italo Rodrigo 4,344 -
1
votes2
answers263
viewsA: How to transform the space of an input text to %20?
Try to use str_replace: str_replace(' ', '%20', 'https://api.whatsapp.com/send?phone=seunumerodetelefone&text=sua mensagem')
-
1
votes1
answer225
viewsA: Keyboard squeezing the components
You can configure the windowSoftInputMode for adjustPan in the Android manifest file. <manifest> ... <application> ... <activity ... android:windowSoftInputMode="adjustPan"> View…
react-nativeanswered Italo Rodrigo 4,344 -
1
votes1
answer161
viewsA: Adjustment with Reactnative layout
I solved using flexWrap:'wrap' and percentages: <View style={{ flexDirection: 'row', flexWrap: 'wrap' }}> <View style={{ width: '33.333%' }}></View> <View style={{ width:…
react-nativeanswered Italo Rodrigo 4,344 -
0
votes1
answer161
viewsQ: Adjustment with Reactnative layout
I want to make a layout as follows: <ScrollView style={{flexDirection:'row'}]> <View style={{flex:1}}></View> <View style={{flex:1}}></View> <View…
react-nativeasked Italo Rodrigo 4,344 -
0
votes1
answer225
viewsQ: Keyboard squeezing the components
When I click on Textinput, the images get squeezed: How to correct? import React, { Component } from 'react'; import {Text, View, TouchableHighlight, ImageBackground, TextInput, Image, Picker} from…
react-nativeasked Italo Rodrigo 4,344 -
1
votes2
answers134
viewsQ: Help to simplify query sql
I have a huge sql query: select l.no_cidadao, extract(year from l.dt_cad_individual) ano, extract(month from l.dt_cad_individual) mes, date_part('year',age(now(), l.dt_cad_individual)) diferenca…
-
-1
votes1
answer40
viewsQ: Jquery command does not work
On my html page, I have the following elements: <div class="alert alert-danger" role="alert" style="visibility:hidden" id="erro">CNS inválido!</div> <input type="text"…
jqueryasked Italo Rodrigo 4,344 -
2
votes1
answer1739
viewsQ: Command update to remove accents from recorded data?
Is there any update command to remove accents from the names saved in the tables, e.g.: update paciente set 'Ã' = 'A' of course the column name is not that, just an example.…
mysqlasked Italo Rodrigo 4,344 -
0
votes2
answers640
viewsQ: Header error when sending email with PHP
I’m trying to send an email via PHP: $headers = "From: [email protected]" . "\r\n"; $mgm = "código" . $_GET['codigo']; $enviaremail = mail($_GET['email'], 'Cadastro BUSCAFREE', $mgm, $headers);…
phpasked Italo Rodrigo 4,344 -
1
votes2
answers360
viewsQ: How to sync git between two machines?
I have a project staying at bitbucket, access it on my machine normally and update the files so: git add. git commit -m 'novo nome' git push Data goes to good cloud. My question is: When I have…
gitasked Italo Rodrigo 4,344 -
0
votes1
answer498
viewsQ: Ajax request does not work
I have 3 files: novaDose.php: <label for="busca">Buscar cidadão:</label> <input type="text" class="form-control" id="busca" placeholder="Digite parte do nome ou o CNS"…
-
1
votes1
answer6751
viewsQ: Bootstrap selectpicker in bootstrap 4
Bootstrap selectpicker works with bootstrap version 4? Is there incompatibility between them? There is another similar "plugin"? I’m testing it like this: CSS imported: <link…
bootstrap-4asked Italo Rodrigo 4,344 -
0
votes1
answer89
viewsQ: Get a record as soon as it is saved in the bank
I’m recording a record in my database like this: $tipo = $_POST['tipo']; $data = $_POST['data']; include 'conexao.php'; $result = mysqli_query($con, "insert into sessoes (tipo, data) values…
-
-1
votes1
answer417
viewsQ: PHP error while saving using quotes
I am trying to write a record in a Mysql database, however, it gives error because one of the fields receives the value Frantchelle's quotation marks. Fatal error: Uncaught Exception 'Exception'…
-
1
votes2
answers1221
viewsQ: What is the link command in npm for?
The question is the same as the title: What is the link command in npm for? Some modules of React Native require the command to be executed npm link react-native-nome-do-modulo And sometimes some…
-
0
votes2
answers59
viewsQ: Doubt with mysqli_fetch_assoc
I made a loop using mysqli_fetch_assoc. How do I know if I’m printing the first and last lines? while ($dados = mysqli_fetch_assoc($query)){ if (É A PRIMEIRA LINHA){ echo 'imprime algo'; } echo…
phpasked Italo Rodrigo 4,344 -
0
votes1
answer41
viewsQ: View mysql query results in Master/Detail
I have the following result of a consultation: CATEGORIA | SUB cateroria1 - sub1 categoria1 - sub2 categoria1 - sub3 categoria2 - sub1 categoria2 - sub2 categoria3 - sub1 How do I echo to display…
-
0
votes1
answer307
viewsQ: How to join two tables in a JSON
I have two tables: Companies id: integer nome: string Imagery id: intger idEmpresa: integer url: string Do: select * from empresas where id = 1 select * from imagens where idempresa = 1 and I get a…
-
1
votes2
answers47
viewsA: Code does not display
Substitute: while ($aluno = mysqli_fetch_array($resultadojovens)){ for while ($aluno = mysqli_fetch_assoc($resultadojovens)){ and Substitute: <td><?$aluno['jnome']?></td> for…
phpanswered Italo Rodrigo 4,344 -
0
votes4
answers534
viewsQ: Help with distinct
I have the following sql query: select nome, data, situacao from cadastro The result is like this: MARIA 01/01/2018 0 MARIA 15/01/2018 1 GISELE 15/01/2018 0 CICERA 08/01/2018 1 ANTONIA 20/01/2018 0…
-
1
votes1
answer46
viewsQ: Help with pg_fetch_assoc
I have the variable $result that returns me the result of a query. I do a while on it and get all the information: $total = 0; while ($row = pg_fetch_assoc($result)) { echo…
phpasked Italo Rodrigo 4,344 -
0
votes1
answer411
viewsQ: Use if in onPress event
I’m trying to use a if thus: <Button iconRight={{ name: 'search', type: 'font-awesome' }} title='BUSCAR' buttonStyle={{ marginTop: 15, borderRadius: 7, backgroundColor:'#2C5CAA' }}…
-
1
votes1
answer169
viewsQ: Removing space at the end of a word
I created an application in React Enable and it searches online via POST. It works well, the point is that some devices include a space at the end of words, ex: The user types natação, but the phone…
-
1
votes1
answer91
viewsQ: Error using include
I have two php files that return one echo with a table. Work ok. gestantCadastrada.php echo '<h2>Gestantes Cadastradas</h2>'; echo '<table class="table table-striped">'; echo…
phpasked Italo Rodrigo 4,344 -
1
votes3
answers7082
viewsA: You uploaded an APK with an invalid signature
open the file /Android/gradle.properties and includes the following information: MYAPP_RELEASE_STORE_FILE=nome-da-sua-chave.keystore MYAPP_RELEASE_KEY_ALIAS=nome-do-seu-alias…
androidanswered Italo Rodrigo 4,344 -
1
votes1
answer88
viewsQ: How to pick up input before the button?
I have some input of the text type followed by buttons: <input type="text" /> <button>inserir</button> <input type="text" /> <button>inserir</button> <input…
jqueryasked Italo Rodrigo 4,344 -
1
votes1
answer395
viewsQ: Write textarea line break in database
I have a <textarea class="form-control" id="informacoes" name="informacoes" rows="3" placeholder="descreva aqui..."></textarea> where the user can enter various information. The…
-
0
votes2
answers44
viewsQ: Help with HTML form
Sorry about the title of the post, but I’m not thinking of something to specify what I want (feel free to edit). It’s as follows: I have an html form and a button: <form id="formflor"…
-
3
votes1
answer3994
viewsQ: How to upload an image using jquery/ajax?
I am sending the following data to save a form: function editaFeira(id, descricao){ if (confirm("Confirma a alteração de " + descricao + "?")) { $.ajax({ type: "POST", url:…
-
0
votes2
answers243
viewsQ: Error concatenating string in jquery
I have two values I want to include in a string: json[key].id which is of the integer type json[key].descricao which is a string I have a variable that receives these values like this (receiving…
jqueryasked Italo Rodrigo 4,344 -
1
votes3
answers1171
viewsA: Convert string to number
It worked for me like this: Number(string);
react-nativeanswered Italo Rodrigo 4,344 -
0
votes1
answer84
viewsQ: Error with serialize() + PHP function
I’m using the serialize function to send data from a form to a PHP page: index php. <form id="formfeira" method="post"> <div class="form-group"> <label for="horario">Horário de…
-
0
votes1
answer575
viewsQ: How does the React-Native cache system work?
The thing is, I’ve created a system that uses a few components Image and upload images from the internet. Only I want the images to appear even when the system is offline. I realized that there is a…
-
3
votes1
answer766
viewsQ: Download file using React Native
I have an Android app that when running accesses a file and lists some information on the screen. The point is, it only works if there’s an Internet. What I need is to download the information and…
-
1
votes3
answers1171
viewsQ: Convert string to number
How to convert string to number in rect? I have a function that receives two parameters of type number(2,6), however, when sending them from one screen to another it is received as string. How do I…
react-nativeasked Italo Rodrigo 4,344 -
0
votes1
answer15
viewsA: Checkbox sends 'on when serialized
I solved using: <input type="checkbox" name="delivery" value="1">
-
-1
votes1
answer15
viewsQ: Checkbox sends 'on when serialized
I have an html form that sends the data via ajax like this: function showValues() { $.ajax({ type: "get", url: "/Home/salvaItem", data: $("form").serialize(), success: function (data) {…
-
0
votes1
answer274
viewsQ: Error of Yoganode
Constantly, I’m making the mistake: Cannot add a Child that doesn’t have a Yoganode to a Parent without a Measure Function! (Trying to add a 'Reactrawtextshadownode' to a 'Layoutshadownode') I…
react-nativeasked Italo Rodrigo 4,344 -
0
votes1
answer724
viewsQ: How to know if constant has a value?
I have the code: import React, { Component } from 'react'; import { ScrollView } from 'react-native'; import { Tile, List, ListItem } from 'react-native-elements'; class UserDetail extends Component…
react-nativeasked Italo Rodrigo 4,344 -
1
votes1
answer1601
viewsQ: How to use substring in React Native?
How to use substring in React Native? if (total >= 1000){ const total2 = total.substr(total.lenght - 3, total.lenght); total = total2 + '.' + total.substr(total.lenght - (total.lenght - 1),…
react-nativeasked Italo Rodrigo 4,344 -
1
votes1
answer1443
viewsQ: How to use state in a function?
I have the following code: export default class App extends React.Component { constructor(props) { super(props); this.state = { xsemana: '0', meses: '1', minutos: '1', }; } calcula(){ const total =…
react-nativeasked Italo Rodrigo 4,344 -
0
votes1
answer43
viewsQ: How to make file_exists search in the correct folder?
I’m testing if a file exists like this: if (file_exists('assets/img/items/'. $currentLocation['id'] .'c.jpg')){ $galleryItem .= '<img src="assets/img/items/'. $currentLocation['id'] .'c.jpg"…
phpasked Italo Rodrigo 4,344 -
1
votes1
answer99
viewsQ: Predefined type 'System.Valuetuple 2 is not defined or Imported
I am using Asp.net mvc and in my controller, I have the code below: [HttpGet] public JsonResult salvaItem(items item) { items oItem = new items() { address = item.address, bairro = item.bairro };…
-
0
votes1
answer91
viewsQ: Doubt with select case
I have the following query: select f.no_equipe, i.no_cbo, count(b.tp_atend) from tb_equipe F, tb_cds_prof G, tb_cbo I, tb_cds_ficha_atend_individual D, tb_cds_atend_individual B where F.nu_ine =…
-
1
votes1
answer715
viewsQ: Google Map not shown
The google map is not appearing on my site. Code: <div class="row"> //O ERRO OCORRE QUANDO INCLUO A DIV MAP DENTRO DESSA DIV ROW <div id="map" class="col-6"></div> <div…
-
3
votes2
answers1438
viewsA: Doubt when joining txt files
I can solve this way: for %f in (*.txt) do type "%f" >> união.txt The code says the following: for %f in (*txt) //loops all files. txt do type //the type command was missing he is the write…
cmdanswered Italo Rodrigo 4,344 -
2
votes2
answers1438
viewsQ: Doubt when joining txt files
Searching the internet to join txt files, I found the command line code CMD below: for %f in (*.txt) do "%f" >> união.txt The logic is to make a loop, grab all the txt files and create a new…
cmdasked Italo Rodrigo 4,344 -
4
votes2
answers142
viewsQ: Delphi does not write to txt file
The code below creates the txt file but does not write to it. Which may be? procedure TForm1.Button4Click(Sender: TObject); var arq: TextFile; begin qr.Active:= true; qr.First; try AssignFile(arq,…
delphiasked Italo Rodrigo 4,344 -
1
votes1
answer515
viewsQ: Select com when e case
I have the following select query: select F.nu_ine INE, to_char(D.dt_ficha, 'YYYYMM') as CMP, I.co_cbo_2002 CBO, CASE WHEN (B.tp_atend = 1 or B.tp_atend = 2 or B.tp_atend = 5) and I.co_cbo_2002 !=…