Questions tagged as 'if'

1
answer

I can not declare variable inside id

@$c_id = $_POST['numero']; @$data_aa = $_POST['data_aa']; // Data esta vazio if($data_aa == ''){ $var = "oi"; echo "$var"; } If I put the variable $var out of if() , it works normally.     
asked by 16.09.2018 / 04:06
1
answer

VBA Module that stores data from one cell and moves it to another cell and moves to the cell below

Good evening people, I created a folder with macro where I have two spreadsheets, Query and games. In the games spreadsheet I put game names and their respective values in real, already in the query I created a list to do the autocomplete with c...
asked by 08.08.2018 / 22:54
0
answers

"SIGSEGV ON THREAD", does anyone help me to solve, and also if possible, to complete the program?

It's the following, I do an info technician, and I'm learning C just two months, and I know little yet. Recently my teacher asked to make a program in which user entered with two number num, and that each position of two vectors n, were filled i...
asked by 19.06.2018 / 02:36
1
answer

checkbox to determine if it shows field or not

I am working on a registration form where the birth certificate number appears. As you may know, there is the old format of certificates, with the name of the notary, term, book and sheet (4 fields), and a new 32-digit single-field format where...
asked by 16.06.2018 / 21:29
1
answer

Can I set the other to do two things?

I want to do a function in case the name entered is invalid, the program shows that the name is invalid and in addition, close the program or return to the starting point, is it possible in Python? carro = str(input('Qual carro você alugou? '...
asked by 26.05.2018 / 17:07
0
answers

registration procedure with error in if chained

I made this procedure to make user registration, I made an inquiry to know if that field had already been registered, to do the insertion of the data in the table I had the idea of doing a chained if that refers to all the fields and in the end...
asked by 20.05.2018 / 23:39
0
answers

Microchip: ADC_GetConversion

I'm developing an alarm and the "actions" will be performed by voltage dividers (ADCconverter). voltdivneg = ADC_GetConversion(VOLT_DIV_NEG); voltdivpos = ADC_GetConversion(VOLT_DIV_POS); There are 3 states: STAND-BY, FAULT, and ALARM. Vout...
asked by 19.03.2018 / 15:46
0
answers

Doubt php, appear image with if?

People, I have a table in SQL Server, which has the columns "pv" "pont" and "enabled" On the webpage, I will display the table as follows: Point of Sale | 0 - 1000 | 1000 - 2000 | 2000 - 3000 | 3000 - 4000 Then, I need to configure t...
asked by 26.02.2018 / 23:59
1
answer

php, bring multiple rows from a linked table to another table of a single id

Hello, I'm having a hard time retrieving information. EDITING TO IMPROVE THE QUESTION Below is the code, In the data for printing, I need to show in the variable $ comp when it belongs to the same id_cadastro I am querying, so far so...
asked by 15.02.2018 / 03:09
0
answers

Vary the color of the toolBar and Tabs, is it possible?

I would like to know if it is possible to vary the color / theme of the toolBar and Tabs depending on the button that the user clicks, a kind of If or Switch Case in the XML itself with the layout, where depending on the user to choose, toolBar...
asked by 24.01.2018 / 17:21