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) {...
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...
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...
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...
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>...
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...
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...
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...
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...
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...