Questions tagged as 'php'

2
answers

Advanced consultation with Relationships in laravel

Good, basically what I want to generate is a query that returns a list of users, that have as excacto value the result of the difference of two fields. In other words, I have the user table that has the fields ndias and diasconsumidos. CUR...
asked by 10.05.2017 / 00:35
2
answers

Pass fix by ajax jquery to PHP post

I have the following arrangement that I want to send by ajax jquery by post to php codeigniter    var array = []; (2) [Object, Object] 0 : Object Codigo : "11111" Descripción : "caja" Eliminar : " Eliminar" Precio : "$46" __proto__ : Objec...
asked by 10.05.2017 / 20:47
2
answers

How to get the excel date with PHPExcel?

Cordial Greeting I have created a class to perform massive loads with the help of PHPExcel, the information to load has columns in date format but it is impossible for me to capture them with the PHPExcel, in doing so it brings me numbers as if...
asked by 10.07.2017 / 19:34
1
answer

PHP does not detect the CURL

Good people, I have a web server on an Ubuntu Server 16.04.2 64-bit LTS. In which I am installing the GLPI, which gives me problems because it does not detect the CURL extension, which I have installed, I have even several versions. Here is t...
asked by 13.07.2017 / 12:45
2
answers

How to manage the data obtained from json with php

I was doing tests to understand how to correctly handle the data obtained from a file Json and I find the following: Json : { "rates": { "AED": 3.673014, "AFN": 68.343295, "ALL": 115.9367, "AMD": 479.122298 }...
asked by 12.07.2017 / 00:37
2
answers

Php, separate words and save variables?

Hello I hope you can help me try to be specific: What I want is to separate words stored in a variable and save them in individual variables: example: $cadena="Hola mundo"; What I want is something like this: $palabra1="hola"; $palabra2...
asked by 13.07.2017 / 08:19
1
answer

Handle php results from ajax

I have a php file that collects data and sends it through ajax to another php that validates that the data entered are the same as those stored in $ _SESSION If they are the same, make an UPDATE in my database. I want to see if there is a way t...
asked by 20.11.2017 / 16:48
3
answers

Select the value of a select

Hi, how are you all concerned about a select? It happens that I want one of the values of them example: <select id="test"> <option value="100" selected>Precio1</option> <option value="200" s...
asked by 18.11.2017 / 09:58
1
answer

Execute Linux command in PHP gives error "sudo: no tty present and no askpass program specified"

I'm trying to restart a Linux service, but it does not work for me. I have this piece of code taken from the web: <form action="reset.php" method="post"> <input type="submit" value="Reiniciar" class="button" > </form>...
asked by 30.05.2017 / 10:12
3
answers

Rare characters in emails sent with PHP

I am developing a website that should send e-mail with different types of notifications to users. For sending them I am using the class PHPMailer. The e-mail is sent from the server, with that I have no problem, but when I open the mail in the c...
asked by 27.11.2017 / 21:14