Questions tagged as 'php'

1
answer

Laravel 5.6: Call to a member function getRealPath () on string

I am trying to send an email from my Laravel project. Upon entering the store I get this error:    Call to a member function getRealPath () on string The email is sent with an attachment, when it is sent without taking into account the...
asked by 09.10.2018 / 22:36
0
answers

How do I see the posts only from the users that I follow?

Model: User public function posts(){ return $this->hasMany(\App\Post::class); } public function follows() { //seguidos, a que usuarios sigue este usuario return $this->belongsToMany(User::class, 'followers', 'user_id', 'follow...
asked by 09.10.2018 / 22:18
1
answer

ERR_RESPONSE_HEADERS_TOO_BIG in php redirect

I have the following code but when redirecting it generates the error ERR_RESPONSE_HEADERS_TOO_BIG <?php session_start(); $uri = "data:image/png;base64,iVBORw0KG //y mucho más cerca de 300 mil carácteres"; header('Location: ' ....
asked by 07.10.2018 / 03:16
1
answer

Enable a text box with select

I'm trying to enable a text box with select with jquery Here the code of js <script> $('#RegistroInmueble5DeSeguro_id_moneda').on('change', function (e) { $(this).find('option').each(function () { $(this).removeAttr("disab...
asked by 10.10.2018 / 00:24
1
answer

Separate a text by IFrames in PHP

I am trying to separate a text HTML containing iframes from a preg_split , and it does not come out. What I need is to create a array with texts e iframes . For example ['texto', 'iframe', 'iframe', 'texo']...
asked by 07.10.2018 / 11:25
2
answers

mysqli_query () expects parameter 1 to be mysqli, null given in

This is my code <?php if(!isset($_SESSION)) { require_once "/Paises/php/conexion.php"; $conexion=conexion(); session_start(); } ?> <div class="row"> <div class="col-sm-12"> <h2>Tabla R...
asked by 08.10.2018 / 20:52
1
answer

Pass a Javascript variable to a php file as a variable other than php

How could this variable be passed to php, since I need it to make sql queries to a server. Resolved I sent via the fetch api, with POST the variable: fetch('./php/views/certificacion_afiliacion_trabajador.php', {...
asked by 03.11.2018 / 01:51
1
answer

how to change the values of the x and y axis

I want to change the values of my x-axis graph and put other numbers but I do not know how <script> Highcharts.chart('container', { chart: { type: 'column' }, title: { text: 'TIEMPOS DE ENTREGA' }, subtitle: { text: 'GRA...
asked by 05.10.2018 / 17:39
1
answer

Yii2 CheckboxColumn

Add a checkbox in the datagrid columns to be able to delete several records together, everything works fine. What I am looking for is that when selecting the rows to be deleted, they are painted in one color. Is there any way to do it?. I'm work...
asked by 05.10.2018 / 18:42
1
answer

Load modal data to text fields

I would like you to help me with a problem I have: In a modal I have a table with the data of some materials In a column I have the insert button, When you click on such a button, you must hide the modal and insert "Code and Materia...
asked by 13.10.2018 / 12:34