All Questions

3
answers

How to do dynamic and generic preparation with mysqli?

I have a mobile application that sends me the following parameters $tabela = $_POST[“tabela”]; // ex: “pessoa” $atributos = $_POST[“atributos”]; // ex: “codigo, nome, cpf” $valores = $_POST[“valores”]; // ex: “10, Rafael, 1234567890”...
asked on 20.01.2017 / 11:21
2
answers

One character length (ASCII vs. other encodings) in bytes

Viewing this question came up with a question, coming from PHP and in the past having "problems" derived from character encoding, eg: srtpos " vs mb_strpos , I knew that all characters ASCII have 1 byte, but I thought that speci...
asked on 19.01.2017 / 12:11
1
answer

Remove characters from a field in MySQL

I have a table where I have several codes, I would like to get all the codes that start with the following sequence 1170 and remove it. For example, the following code 11701287871 would be 1287871 . Is this possible?     
asked on 15.12.2016 / 20:51
3
answers

Meaning of the term "Fluid Layout"

In surveys, I came across a series of articles talking about Design fluido .But the majority with no clear explanations. I want to know what this means in development Frontend ?     
asked on 19.12.2016 / 20:02
2
answers

How to place 3 adsense link ads side by side?

How to put 3 adsense link ads side by side like this?     
asked on 14.01.2017 / 21:55
1
answer

How can I make a new year script?

Well guys, I tried to do it but I could not. I want a javascript code that automatically activates only after midnight. See the code: var agora = new Date(); var anoNovo = new Date(2017, 0, 1, 0, 0, 0, 0); var anoNovoMax = new Date(2017, 0, 1,...
asked on 31.12.2016 / 14:48
1
answer

I want to compare start date and end date. The start date always needs to be smaller than the end date. CompareTo () I encountered an error

When the end date is with the 00:00 time, it identifies that the start date is longer than the end date but it is not, the start date is still shorter. When I put the end date using 14/01/2017 23:45 the method returns me -1 . But...
asked on 15.01.2017 / 01:13
3
answers

Optimization of PHP functions for querys to the database

I often see different functions in PHP for each query . I would like to know if there is any way to do the following in an PDO connection: function get_user_data($table, $columm, $required) { $db = conn(); $data = array(':value' => $r...
asked on 06.03.2015 / 11:03
1
answer

How to use regex beginning in the middle of the string?

I have a fairly large string and would like to check if a snippet of it matches a regex. The problem is that this snippet is in the middle of the string, in a very specific position. As I will have to do this several times (different strings, di...
asked on 11.01.2017 / 07:39
1
answer

Character Camera does not move!

I'm doing a Unity tutorial that I downloaded to the Asset Store at the following link link I tried to make my character turn to look at the mouse, but it can not rotate, and just look forward to the case and I can not make it look at other...
asked on 11.03.2015 / 16:13