Questions tagged as 'php'

3
answers

check query in 2 tables at the same time with mysql

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...
asked by 20.05.2016 / 20:39
1
answer

error in mysql_result () [closed]

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...
asked by 22.09.2015 / 21:59
1
answer

Why do errors in PHP scripts run via the command line do not appear in the apache error log?

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...
asked by 03.07.2016 / 02:15
1
answer

How to assign another 60 days on a date compared to today's date in PHP?

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');     
asked by 28.06.2016 / 20:23
2
answers

Functions of cast or direct cast. What is the best option?

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...
asked by 18.08.2016 / 16:19
3
answers

How to check if my current time is in a time interval?

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 ?     
asked by 16.11.2015 / 05:52
1
answer

Set delivery address API Pagseguro

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();...
asked by 13.11.2015 / 15:58
1
answer

how to use mysqli_fetch_array

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");...
asked by 16.12.2015 / 18:13
2
answers

Get PHP variable and display in input

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...
asked by 06.09.2017 / 19:17
2
answers

URL in netbeans does not work

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...
asked by 13.11.2015 / 12:50