Questions tagged as 'php'

1
answer

Laravel 5.4: I do not get data from Eloquent relationships

Using Laravel (with MySQL) I'm starting with Eloquent relationships. I try to get the related data but I do not get anything. My configuration is as follows: Migration providers: Schema::create('proveedores', function (Blueprint $table) {...
asked by 02.10.2017 / 03:28
1
answer

Put a link inside a canvas

with PHP and through an SQL query, I get some parameters, which I show through a for and that end up showing up as a link. This is easy to implement and it works, but I want that link to be inside an HTML canvas and this is where the problems ap...
asked by 16.03.2018 / 23:27
1
answer

delete scientific notation in a csv file [closed]

I have a problem, when generating a .csv file with php when opening it in excel a field that I have named as a location card that has more than 15 numeric characters when opened it changes it to this notation The idea is that when opening the...
asked by 19.03.2018 / 16:22
1
answer

Can I upload files using php and ajax?

   Notice : Undefined index: photoProfile in C: \ xampp \ htdocs \ web \ profile.php on line 8 < br> When trying to upload a file using ajax I get that error and it does not upload the file, but trying to do it without ajax, and if it...
asked by 18.03.2018 / 01:19
1
answer

opendir (), readdir (), how to display file names with an accent?

I want to get the names of the files in a folder but at the time of showing them the accented letters appear with a question mark. How can I make accented letters appear? I leave the example code. <!DOCTYPE html> <html>...
asked by 15.03.2018 / 23:50
2
answers

Problem when plotting with Highcharts and AJAX

I am trying to make a dynamic graphic, that I pass the data by AJAX, that when selecting a MES graph me according to result, it happens that in the browser console it shows me results according to the query but it does not graph me, and I...
asked by 26.09.2017 / 19:05
1
answer

Show form depending on value in SESSION variable in PHP

I am trying to show a form depending on a value in the session variable, at the moment of starting the command I call several data and I store them in the session variable, one of these is an operator, but I want that if the variable has the ope...
asked by 26.09.2017 / 06:30
1
answer

I have a problem when consuming web service soap with php

I have the following code to consume a soap web service with php, class request { public $request; public function __construct() { $this->request = new data(); } } class data { public $EntityCode = 10324; pu...
asked by 26.09.2017 / 05:41
1
answer

FPDF throws errors in 000webhost

It worked in a localhost XAMMP, I put it in a free hosting 000webhost to try it Warning: A non-numeric value encountered in /storage/ssd2/023/3036023/public_html/pdf/fpdf/fpdf.php on line 580 Warning: A non-numeric value encountered in /stora...
asked by 27.09.2017 / 19:58
2
answers

Get a json from php to use it in javascript

For example: ..datos: [ {a:56, b:"nombre1"}, {a:26, b:"nombre2"}, {a:16, b:"nombre3"} ] Inside data: [....] I want to add the objects. In the php I use, I have: echo json_encode($array, JSON_FORCE_OBJECT); But it...
asked by 17.03.2018 / 04:51