I have a java class
public class PRODUTO extends SugarRecord implements Parcelable {
private float id_pro;
public PRODUTO(float id_pro){
this.id_pro = id_pro;
}
public float getId_pro() {
return id_pro;
}
public void s...
I'm doing a site and I wanted it so that the person typed in the link javascript would pick up and send the form but he is sending it but when I try to recover it with $ _POST it n retrieves the value that was sent q code I'm using .
<?php...
The question is the title alone, in PHP we can do:
var_dump((int) "!");
And receive int(0) .
And in MySQL we can do:
SELECT campo_int FROM tabela WHERE campo_int = "!"
And if that 'campo_int' is '0' it returns th...
I have a TXT file storing data separated by | and would like php to check if there is anything there repeating itself as I do?
In TXT the data looks like this:
ID|NOME|TELEFONE|ENDERECO|REFERENCIA
Every added client saves a line of this...
Friends, I have a problem, the string that has an accent can not get it using JSON:
$imagens = array();
$sql = mysql_query("SELECT * FROM texto_index");
while ($row = mysql_fetch_row($sql)){
$imagens[] = $row;
}
echo json_encode($imagens...
I made a preg_match where it accepts several characters.
At the moment I wanted to accept BREAK LINE also, when a person press ENTER to go down the line.
How do I do it?
Example of what I did:
!preg_match('#^[a-z0-9\-+, .\#*()...
I have a large HTML list with about 106000 lines of code. Where these lines are records and these records are subdivided into:
6 lines of information about a game (as name and year of publication)
1 line break
So, each "record" in my HT...
Because in my% ajax%, the catch of alert(result) is showing my connection information to the database as shown in the following image: link
Code:
$pdo = new PDO("mysql:host=localhost; dbname=meubanco", "meuuser", "minhasenha");...
Consider the following code:
$a = $b > $c ? $c : $b;
The question is, if $ b is a set of operations, if the result of logic $ b > $ c is false, I will have to repeat all the existing operation in $ b.
I did this, but I wonder if th...