Example, we received a login this way
joao.silvestre
And I want to get the string with the following rule:
The first letter of the name + the 7 letters that comes after the point that separates the name of the last name, for example:
j...
Good evening, folks. This is the following, I'm using the bootstrap and I would like to know how I avoid repeating the same codes in all pages, since the header and footer are the same, this would make the code more readable, I searched and sa...
I'm trying to do a test with PHP + MySQL + AngularJS and I was left with a question about how to handle the bank data with angular and send to screen, I have the following codes:
con-bd.php
<?php
....
$conn = mysqli_connect($host, $us...
I have the $valor variable that returns me
10,00
I needed to format this number for
10.00
Instead of the comma , put a dot .
I tried to use the function number_format($valor, 2, '.', '') but it is giv...
I would like to know which of these codes would be most recommended for speed, since all three do the same job:
1
$rand_length = 1;
$rand_rules = range(0, 9);
shuffle($rand_rules);
$rand_rules = array_slice($rand_rules, 1, 9);
$uni_id1 = ""...
I have the array below and I need to create a foreachs to go through it and get the product and qtd.
$array = array(
array(
'loja' => 'Loja1', array(
array(
'p...
I need to read an array and get the name of its column and its value.
Array:
Array
(
[0] => Array
(
[Conta] => FRANCIELE OLIVEIRA
[CPF] => ''
[Telefone Res.] => (00) 0000-0000...
Good afternoon, I need help selecting a file for its name in PHP. I use the naming pattern starting with the file creation date in the format: 20160111_ALGUMA_COISA and I need my PHP to select only the file by the part until the DATA, ignoring t...
I'm trying to get the value of select in $_SESSION to persist the search data on a system I'm doing, but I do not know how to apply this method to select . Can you help me?
I will save the variables after $_POST ......
<options += '<option value="' + j[i].CodCidade + '">' + j[i].NomeCidade + '</option>';
I have this code and I want to add one more attribute after the NameCity, if anyone can help thank you.
The code is HTML generated by Java...