I am working with PHP and a problem has arisen that I have been looking for and I have not been able to solve. The problem comes when in a class I try to require another class in this way:
require 'DAO/usuario.php';
But when it comes to the...
I have this code, the program does its thing and when it ends it indicates that to continue the 0 is entered or to close any other number, what I want to do is that to continue enter the word 'continue' or follow 'and to close the word 'leave'...
I have created a simple program in JAVA SE with NETBEANS where I have 3 buttons and every time I press a button I send information to my database, at all times I have the connection open and every time I press the button
//Creo la conexión
st...
The method copy() makes a superficial copy of the list, but I do not see any sense to use it, if I want to make a copy of the list I simply do:
lista2 = lista1
Instead of:
lista2 = lista1.copy()
What is the copy() metho...
As of this another question on the site and its answers, I had a question about how to access the characters of a chain.
On the one hand it is suggested to use charAt (eg cadena.charAt(0) ) to access the character that is in...
MY CASE
I have this method to make direct call from android:
public void Llamar(String Numero) {
Intent Llamada = new Intent(Intent.ACTION_CALL).setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
Llamada.setData(Uri.parse("tel:" + N...
Previous information: I'm making an application in which I copy part of the code of a web page (from a table of this to be exact) in order to put the information of this in a database. For that, he had thought about dividing the chain that the u...
I would like you to help me with this query, I want the costs that are greater than 1000 to show me in another column increased to 10%.
At the moment I only have:
SELECT * FROM tarifa
The result is the following:
I hope you can...
Assuming I have a Django model like the following:
class Comprobante(models.Model):
punto_venta = models.IntegerField(blank=True)
And I want to validate the model and particularly that punto_venta is a value from 1 to 9999. I und...