Questions tagged as 'php'

1
answer

Date type field in Codegniter form

I'm developing a form with date field. How do I use the present form resource of Codeigniter for a date field? In the example below I'm using text area. Is there a form_ function for dates? echo " <div class='form-group'> ";...
asked by 20.06.2014 / 05:07
1
answer

Creating Foreign Keys by Migration - Laravel

I'm having trouble when I try to create foreign keys for Migration in Laravel. Look at my Migration !!! <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreateEmpresaUsuarioTable exten...
asked by 22.06.2014 / 02:37
1
answer

Extract private key from file with extension .DER

I need to extract the private key from a .DER file, however analyzing the openssl_pkey_get_private I have identified that it is necessary to pass as a parameter a file with the .PEM extension. I tried to see the contents of th...
asked by 03.07.2018 / 13:53
1
answer

Download multiple files

There is the possibility of downloading multiple files in a single link. I have tried in many ways and I have not obtained results if someone can give a force. In the image the termosPedidoId (78) <?php use App\Controllers\DB\Con...
asked by 10.07.2018 / 14:35
2
answers

Export jQuery DataTables

I have a table and I use DataTables, I'm using the native export functionality and give a hide in the columns my code looks something like this: "buttons": [ 'copy', 'csv', 'excel', 'pdf', 'print', { extend: 'colvis',...
asked by 11.07.2018 / 13:39
2
answers

Does it make sense to use an api to access another api? (bematec one in case)

I was asked to make an API here where I work to be able to integrate some systems with nfce. For that, they hired the api one. More information here: link . The real question is how and why should I make an API to access another API? Would n...
asked by 17.08.2018 / 20:30
1
answer

Add a tag with the amount next to the field

I want to make a button or text field, for example, of email, that informs the amount of emails on top of the text. Something like:    Emails¹³ Is this done in PHP or HTML?     
asked by 27.08.2018 / 13:01
2
answers

How do I change the value of a PHP variable by clicking a link?

For example, I have a variable called: $idEmpreendimento = "1"; I would like, by clicking on a particular link, I could change this value to 2. Is it possible? --------------------------- EDIT ~ Solution For those who want the solutio...
asked by 14.10.2014 / 18:00
1
answer

Querying inserts in the database in real time [duplicate]

There is a table in Mysql that suffers many insertions. The application needs to show these changes to the client. Currently the existing application queries the table every 10 seconds and displays the contents of the table. Is there any way t...
asked by 14.08.2018 / 15:47
2
answers

Error fetching: Can not modify header information [duplicate]

When you click on a link, you would like to download a file. The file path comes from the database. The path to the download of the file is correct, something like "catalog / catalog_janeiro.pdf". <?php $sql = mysql_query("SELECT * FROM t...
asked by 21.02.2014 / 12:57