All Questions

2
answers

Why do I have to assign the value of the prepare method to a variable to only after instantiating the execute? I can not

Ex: $stmt = $db->prepare("SELECT * FROM BD"); $stmt->execute(); Why does not it work if I instantiate the execute method of the same instance? since the value has already been passed to the prepare method? ex: $db->prepare("SELEC...
asked on 03.05.2014 / 16:00
1
answer

How to pass parameter from one Controller to another in Asp.Net

Hello, I have an object that needs to pass by parameter to another Controller through RedirectToAction , I used TempData however after any page change it loses the reference, know of some solution so that it does not lose the referen...
asked on 16.05.2014 / 22:23
3
answers

Difficulty with web scraping

<tr bgcolor="FFF8DC"> <td valign="top">25/06/2014 20:37</td> <td valign="top">25/06/2014</td> <td> <a href="Javascript:AbreArquivo('430489');">BROOKFIELD INCORPORAÇÕES S.A.</a>...
asked on 26.06.2014 / 05:37
1
answer

Problem reading database words with accent or cedilla

I'm reading my table database categories and when I have words with cedilla or accents, they appear in my project with strange characters. For example, in the categories I have a Ratings title, in my project this title appears as: AVALIA...
asked on 07.06.2014 / 20:58
1
answer

JavaScript Initialization of Objects [closed]

I'm new to JavaScript, and I'm using a framework Restart written with AngularJs for HTTPS requests. I'm having a lot of trouble initializing a literal object, with the following structure: $scope.niveisDeAcesso = [ {nivel:"LISTAR", selec...
asked on 29.07.2014 / 03:37
2
answers

When to use cache system in PHP?

I've been reading a bit about using the cache in PHP, its advantages and disadvantages. Some doubts have arisen and so on. If I have a system that only shows texts with update (re-editing) of the same, very small, is it advisable to use CACHE...
asked on 09.06.2014 / 23:13
1
answer

MySQL Commands out of sync; you can not run this command now

I have a class Import (PHP) that serves to read XML files and to insert into the DB. First of all I have the constructor of class Import that creates a new connection mysqli : ... $this->mysqli = new mysqli( HOST, USE...
asked on 19.05.2014 / 15:26
1
answer

Why is the default of an access modifier "protected" in .NET?

Unless I'm wrong, the default when a modifier of a class is not defined, for example, is assumed to be protected : class LoremIpsum { ... } Is there any special reason for this? which?     
asked on 03.06.2014 / 23:34
2
answers

How to change the value of a property given its name

In my program I have some classes where data is stored. For example Class1.alfa.dado = 66; Class1.beta.dado = 56; Class1.gama.dado = 37; The user will select one of the options that you want to change in a ComboBox, in this ComboBox are the...
asked on 18.08.2014 / 14:38
1
answer

How do I create a mysql trigger to drop inventory?

First of all I will present the structure of the database: Orders Table: id cliente data status Items table: id produto tamanho = Estoque.id quantidade pedido = Pedidos.id Inventory table id tamanho quantidade chave = Produto.id...
asked on 27.06.2014 / 22:06