Questions tagged as 'php'

1
answer

Difference in hours between days using carbon

When checking the difference in hours between today and tomorrow I get the value of 6 which refers to the amount of hours until 00:00 today; $t = \Carbon\Carbon::tomorrow(); $n = \Carbon\Carbon::now(); $n->diffInHours($t); // 6 Bu...
asked by 15.01.2018 / 18:10
1
answer

Duplicating bootstrap menu

I'm noob in web development and I need a little help from my colleagues, if possible. I'm doing a site, using the bootstrap, and I came across a little problem. I have two drop-down menus and when I click on one or the other both menus are op...
asked by 14.12.2017 / 12:01
1
answer

Write user data in session after login

In the login screen I ask to release the access to the system, after that I would like to make a complete query of that user's data and save it in the SESSION. <?php // inclui o arquivo de inicialização require 'init.php';...
asked by 15.12.2017 / 21:22
1
answer

pass select value with array by ajax

I need to pass information from a select array to ajax but I can not. My form: <form method="post" id="form1"> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="table-data"> <tr> <td> <select name...
asked by 18.06.2018 / 15:48
1
answer

How do I save an image on a path by searching from an Oracle database?

I'm trying with the PHP GD library, like this: <?php $con = oci_connect('root', '123', '172.16.1.100/DB'); $stmt = oci_parse($con, "SELECT Nome, Imagem FROM Tabela where ID = '1'"); oci_execute($stmt); $row = oci_fetch_array($stmt, OCI_ASS...
asked by 30.07.2018 / 22:47
1
answer

Use require () (or another method) in NodeJS as in PHP

In PHP Suppose I have a const file in a root directory called const.php : define('CONST_1', BASE_CONST_1 || 'Value 1'); define('CONST_2', 'Value 2'); define('CONST_3', 'Value 3'); And another file, in the same directory, named index.ph...
asked by 10.01.2018 / 21:18
2
answers

Send form data by email

I downloaded the codes of a page on the link to use as a temporary page while the site of an event that I organize is not ready. The page has only one field where the person places the email and clicks send. I need it when I click the Send...
asked by 03.12.2017 / 14:58
1
answer

Page bottom of page

I have a system that shows 8 data per page, my problem is that the pagination when only has a data on the page or 2 is on the data side, type: data 1 - data 2 - Page 1, I wanted it to stay at the end of the page as it happens when you have 8 dat...
asked by 06.12.2017 / 13:34
1
answer

Questions in GroupBy Query and Checkbox - Laravel 5.5

I'm developing in PHP in the Laravel 5.5 Framework and I have the following code to create my checkboxes. {{-- percorrendo a tabela para exibir os checks--}} @foreach($permissoes as $keys => $dados_permissoes)...
asked by 12.12.2017 / 20:04
1
answer

Checkbox gets bugged MARK ALL -RETIRATE SELECTION -Special event;

Hello everyone, my goal is to check and uncheck the checkboxes until then, all right look at the print: I press to select all and the script selects ALL I click to unmark it uncheck ALL until everything is right. The PROBLEM is that if...
asked by 18.11.2017 / 21:31