Questions tagged as 'php'

1
answer

Parser rows columns table html

I have to program a parser to save the columns and rows of an html table in the bd, this is my code: $url = "https://xxxxxxxx"; $html = file_get_contents($url); $html = fix($html); $fileName = fileSave("bienes", $html...
asked by 26.05.2017 / 20:26
1
answer

Array to string conversion. Modify mysql data with php

I have the following code that generates a table in php, returning the data saved in a database in mysql require("conexion.php"); $consulta = mysqli_query($conexion, "SELECT * FROM clientes"); if (!$consulta) { die("Fallo al realizar la...
asked by 19.05.2017 / 21:29
1
answer

BLOB type images stored in a table

Does anyone know how to extract BLOB type images stored in a MySQL table and convert them to .png, to store them in a folder? The following code extracts the image of the "200x150" field from the "img_alq" table and displays it on the screen:...
asked by 27.05.2017 / 15:48
3
answers

Display data between a range of dates using Highcharts in Wordpress

I edit the question: I'm using HighCharts in WordPress to show data from a DB MySql . I want to show data between a range of dates selected by the user In the HighCharts code, in the data section I do not hav...
asked by 06.06.2017 / 21:31
1
answer

Problems with Composer when uninstalling a package

In the application I have installed Composer (I did not do it myself) and with it several libraries. Now you have stopped using one of them and you have to uninstall it. As it was installed with Composer I think it should be uninstalled w...
asked by 01.06.2017 / 12:35
2
answers

Print data from a JSON with PHP

I want to print data specific to a JSON. I have the following code: <?php $summoner = "ErickReplay"; $key = "mikey"; $ch = curl_init(); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_RETUR...
asked by 03.06.2017 / 11:08
1
answer

problems to validate with preg_match and filter_var

I have a problem trying to validate input with preg_match and filter_var it does not validate me. I append the code to see what I'm failing. <?php include_once "conexion/conexion.php"; if(isset($_POST['guardar'])){ $nombresyapellidos...
asked by 01.06.2017 / 05:57
1
answer

Error with the format of a foreach cycle, web service

I am creating a client in php, which consumes a web service in php, when trying to execute the client in the browser a message appears, Warning: Invalid argument supplied for foreach () in C: \ xampp \ htdocs \ 04_soap_mysql \ index.php on li...
asked by 05.06.2017 / 03:09
1
answer

laravel 5.6 related models to related models

I have in the model Finca.php public function piscinas(){ return $this->hasMany(Piscina::class)->select('id' , 'finca_id', 'area' , 'name'); } And in the Piscina.php model public function finca(){ return $this->belong...
asked by 14.06.2018 / 00:48
1
answer

Why do I change the time when I insert?

Hello, I am handling a graph where the date and time are displayed and the parameters are clear, but at the moment of inserting the time and date, the time is advanced by 5 hours. To insert I take the time and date of the current equipment an...
asked by 19.07.2017 / 23:00