I have two tables in my DB (mysql), where:
1st Table: CADASTROS
With the following fields: ID, NOME, IDADE, CIDADE
2nd Table: FUNCIONARIO
With the following fields: ID, ID_CADASTRO, PROFISSAO, SALARIO
Running...
I'm looking for help to understand an error given in a call to mysql_result (), that I can not resolve this error:
Warning: mysql_result () expects parameter 1 to be resource, object
given in C: \ wamp \ www \
I do not know what para...
It is important to note that errors occurring in PHP script execution via browser are registered without any problem in the file: /var/log/apache2/error.log .
The problem only happens when scripts are executed via the command line.
T...
I'm assigning today's date in a variable, I'd like to know how do I assign today's date plus 60 days. What would the syntax look like?
$dateIni = date('Y-m-d');
In PHP, I realize that it is possible to do some things in a number of ways.
One of those that comes to my attention is the functions and functionalities related to type conversion. You can use both the type keyword and use functions.
For...
I'd like to know if my current schedule is in an hour range.
$hora1 = "08:25:00";
$hora2 = "12:25:00";
$horaAtual = date('h:i:s');
How do I know if $horaAtual is between $hora1 and $hora2 ?
I have to pre-define the delivery address of the pagseguro in my code PHP . The problem is that I have tried and I can not, what I can do is just set the billing address. My code:
$paymentRequest = new PagSeguroPaymentRequest();...
I would like to know how I use this command mysql in my code because I am trying and nothing can not make it work if someone can help thanks.
code:
$sql = mysqli_query($mysqli, "SELECT * FROM produtos LIMIT $inicio, $totalProduto");...
Good afternoon, everyone. I want to get the value of the cpf variable, after it is treated, and display it inside an input.
practicando.php
<fieldset style="width:50%; margin: 0px auto; ">
<legend>Colocando PONTO no...
I'm trying to run a project in php on netbeans and it runs the following url:
http://localhost/portfolio/index.php
Only my project does not open. It only opens in the following url:
http://localhost:8080/portfolio/index.php
How do I op...