Questions tagged as 'php'

2
answers

Calculate assistances, faults, delays in PHP

I want to calculate the attendances, faults and delays of ALL the employees that return the function buscarEmpleados() from a date A and a date B which are received in $dates1 and $dates2 buscarEmpleados returns a...
asked by 06.04.2018 / 07:35
1
answer

Using Highcharts with Laravel (Blade) and MySQL

How do I pass parameters, data from the database? According to the documentation, the examples are with static value arrays, but I would like to obtain this information from a data source, register people by their sex and age, and then graph it....
asked by 11.06.2016 / 05:47
1
answer

Replace special characters

I have a file in php that searches for files inside a directory (folder) the file is called (# file # example.mp3) and the link of that file is saved in an array $files[] = array( "name" => $f, "type...
asked by 19.05.2016 / 00:27
1
answer

Error in sqlsrv_fetch_array from PHP to SQL Server

In a connection from PHP to SQL server I have the following error:    sqlsrv_fetch_array () expects parameter 1 to be resource string given This is the code: $server = "SQLSERVER\INSTANCIAALABD"; $conn = array("Database" => "NOMBREDA...
asked by 11.05.2018 / 22:04
1
answer

How to pass the VALUE of an INPUT to another INPUT of a table created with JQuery?

You see, I have my code, in which of a search that I do, when selecting the result the fields (INPUTS) are filled automatically using the autocomplete. Now, clicking on add using JQuery I have created a table which creates all the INPUTS similar...
asked by 18.05.2018 / 23:43
2
answers

problem with a query prepared in php and mysqli

I would like to ask for your help with the code of a registration form which I am trying to change to use prepared queries: $registros2=mysqli_query($conexion,"SELECT id_cliente FROM clientes WHERE correo='$correo'"); $fila2=mysqli_fetch_array...
asked by 27.07.2018 / 02:34
1
answer

How do I modify an iframe through javascript?

The problem is as follows. I have a total of 4 iframes within my website, the only one that moves is the content, the others remain immobile, the one that moves constantly has no problems, the issue changes when one of the other frames should be...
asked by 20.07.2016 / 09:25
1
answer

PHP with Mongo, questions with questions

I have a code very similar to the one in the photo, in the part that says '$gte' => 18 I just want to replace 18 with a variable that the user enters. I already have the variable and tried with '$gte' => $num but it does not...
asked by 12.07.2016 / 20:56
2
answers

Customize the arrival of mail with CSS through PHPMailer

Hello, how I have a question: I am sending a table of 5 columns and 4 rows. It is very simple. I'm doing it within phpmailer and I enclose it with double quotes and the content in quotes simpres. What I see is that when I send the e...
asked by 27.09.2016 / 15:46
2
answers

Perform very heavy task in the background php

I upload a file from my website with php, but the task may take about 5 minutes to finish, in principle the size of the file may increase. The question is, is it possible to perform the task in the background? I have seen that both a POST...
asked by 26.09.2016 / 21:18