All Questions

2
answers

How to print the SQL statement being sent to the bank?

I would like to know how to write a SQL for control purposes of the statement being sent to the database: $sql = $pdo->query("SELECT * FROM imovel WEHRE CATEGORIA = 'APARTAMENTO'"); How to print the SQL statement being sent to the bank?...
asked on 03.10.2014 / 18:34
3
answers

Validity of a QR Code

I have a QR Code that leads to a link. This link, I suppose, will air until 2015. Of course, when the link does not exist, this QR Code will not get you anywhere. My question is: Does this code have validity? Or, for example, someone in Trans...
asked on 27.08.2014 / 19:12
6
answers

How to "call" this correctly?

When Elements are within onCreate , using (this) is very easy ... Example 1: that works from within onCreate itself protected void onCreate(Bundle savedInstanceState) { Spinner spinner = (Spinner) findViewById(R.id.memo_confirmat...
asked on 27.01.2017 / 11:06
3
answers

Subtract date and display in YEARS, MONTHS and DAYS

DBMS: MySQL Problem: How do I return the subtract of the current date with a specific date and return the value in YEARS, MONTHS and DAYS in a query? Example: DADOS DataAdmissao dataAtual 2010-04-07 2014-06-27 (este dado não está...
asked on 27.06.2014 / 21:33
3
answers

Update generating duplicate key error

I have a web application in .net 4.5.1 with MVC and entity framework. The error occurs in a basic CRUD. I retrieve the object that will be the model sent to the view with the following code: Professor professor = db.Pessoa .I...
asked on 03.02.2014 / 22:15
3
answers

What difference between DropDownListFor and DropDownList

What is the difference between DropDownListFor and DropDownList? And when and which one to use?     
asked on 11.02.2015 / 13:20
3
answers

Best way to apply a pattern to the acronym

I have the following possible returns: AB A1 A The first will always be a letter, the second may or may not occur and may be letter or number. In JavaScript it's like this (Example): if (/^[A-Z][\w]$/.test(value.toUpperCase())) {...
asked on 18.09.2018 / 21:54
3
answers

Execute function for each class you find

I'm creating a picture gallery within thumbnails by automatically setting them where I use the calculation below: if($('.thumb img').width()<$('.thumb img').height()){//portrait $('.thumb img').css({ maxWidth:'100%' }); $('.thu...
asked on 16.12.2013 / 17:45
3
answers

Echo returning wrong value

I do not understand one thing in this case: $arr_4[] = "$arr_3[$i]<sup>$arr_22[$i]-$contador+$eletrons</sup>"; Come on, the $ arr_3 [$ i] stores a string value "3d", the $arr_22[$i] = int (10) , the $contador = int(30) %...
asked on 13.10.2014 / 18:15
3
answers

How do I start Tomcat as a service on Linux?

I need to put a web system in production using Tomcat 7 . I know I can start with the shell catalina.sh start but I would like something that works after reboot and that Tomcat comes in normally.     
asked on 19.03.2014 / 00:45