Questions tagged as 'php'

1
answer

Insert multiple - Laravel

I come to you in search of an orientation, I am working with laravel 5.5, I am using some nested lists, like the ones in the following photo: In the first field I choose the server and in the second, it loads me a few instances from an...
asked by 08.11.2018 / 19:26
2
answers

Doubt about else within a foreach

Gentlemen, cordial greetings. Searching, I found on the network a php script that allows me to search for files in a directory, I made an adjustment so that I search only pdf files and show me a link to download it, this works well, but I wou...
asked by 12.11.2018 / 16:29
1
answer

Save names entered in input in the same variable

I am practicing the SESSION_START () in php. I have an input where to enter names, and I want all the names entered to be saved in the same variable to create a list with all the names entered. This is the code .. <form action="sesion.ph...
asked by 08.11.2018 / 16:02
1
answer

Replace string in txt or flat file with PHP

here again requesting your help and I hope you can help me create this instruction. I want to create a php script that reads a flat file and substitutes a string of characters, that string of characters is identified with a regular expression...
asked by 04.12.2018 / 02:22
1
answer

Query with PHP PDO and SQLServer

I am trying to make a query with PHP to a database in SQLServer with ajax and MVC but when I execute the query it throws me the following error sqlsrv_fetch_array() expects parameter 1 to be resource, boolean given...
asked by 02.12.2018 / 06:59
1
answer

Take data from an input

I have a chronometer system in which I am trying to take the input data and take it by $_GET to be able to calculate time by value. var startTime = 0 var start = 0 var end = 0 var diff = 0 var timerID = 0 function chrono(){...
asked by 03.11.2018 / 23:05
1
answer

Doubt in laravel driver with php

I have a problem with the controller, I'm looking for a product and at the same time I'm looking for a product that I have related up to here I have no problem using this driver: public function show($id) { $producto = Pr...
asked by 16.11.2018 / 22:16
1
answer

Split HTML table

Hello, I have the following code: <div style="overflow-x:auto;"> <table class="table table-responsive"> <thead class="thead-dark"> <tr> <th>Nro</th>...
asked by 16.11.2018 / 14:51
1
answer

Make field month filter date ("Y-m-d")

Hello I have this form I want to filter with only the month that when selecting a me <?php if(isset($_POST["mes"])&& $_POST["mes"]>0) $consulta.=" AND s.fecha=".$_...
asked by 16.11.2018 / 17:33
1
answer

How to insert values from a dynamic table into the mysql database

Good, I have a sales form, more or less finished. In that form I have a table that adds dynamic rows extracted from another table in a modal. $('.a').on('click',function(){ var trPrincipal = this.offsetParent.parentElement; //Buscamo...
asked by 25.06.2016 / 07:42