All Questions

3
answers

Capture Input ID

Does anyone know how I can capture the id of an input and send it to the database? EXAMPLE I have this input: <input type="checkbox" name="adicional" id="Leite Ninho" value="2.00"> It has the name that I will use to call it th...
asked on 30.10.2015 / 16:49
2
answers

Handle and model Json object

I have a JSON object with the following structure: [{ "Codigo": 7, "Descricao": "Atividade 1", "CodigoMilestone": 6, "TempoRevisado": 2, "Inicio": "\/Date(1445738400000)\/", "...
asked on 30.10.2015 / 20:57
1
answer

How to prevent text from being selected using CSS

How do I prevent a text from being selected by the user using a rule in CSS?     
asked on 30.10.2015 / 19:38
4
answers

You can simplify the IF statements in PHP

Personal I'm creating a draw system in PHP language Here is an excerpt of the code I started to program but the problem is that there are 19 different hit combinations this one down here is just the first! is there a more practical way to do it...
asked on 11.11.2015 / 16:24
1
answer

What is the meaning of error 406?

   Not Acceptable       An appropriate representation of the requested resource   /aa/bb/cc.php could not be found on   this server.       Additionally, a 404 error was encountered while trying to   use an ErrorDocument to handle the request....
asked on 11.10.2015 / 16:45
5
answers

How can I capture a favicon from a website via PHP?

I load an external content from a website and then import it into DOMDocument . I can currently capture information from the title tag easily. I do this: $dom = new DOMDocument(); @$dom->loadHtml('<?xml encoding="UTF-...
asked on 07.10.2015 / 15:11
1
answer

What is the correct way to declare a main () function?

In some of the research I've done, I've noticed that there are some different ways of doing it, like the examples below: int main() int main(void) void main() // entre outros... I know that the statements are entirely linked to the retu...
asked on 28.10.2015 / 17:44
2
answers

Is it possible to use $ this with static methods?

   Before questions or criticisms arise, it is not possible to do this, simply because static methods do not have access to public, private, and protected variables and methods, because they are accessible even without an instance of the class...
asked on 13.11.2015 / 02:58
1
answer

How to use bytes from BitConverter.ToDouble

I have an interface that sends a reference value to a microcontroller. I need to send the values in bytes because these values will be stored in the memory of the microcontroller. In the interface, in C # I'm using for example: double referenc...
asked on 14.10.2015 / 21:14
1
answer

Doubts about double exclamation (!!) in javascript / Jquery [duplicate]

I saw the use of the same in the source code of Jquery , for example: fired: function() { return !!fired; } Code snippet located between lines 3222 and 3224 of version 2.1.4 uncompressed. Is it something native to Javascript...
asked on 19.10.2015 / 14:30