Questions tagged as 'php'

1
answer

Attach several files and send them by phpmailer

How can I attach several files (more than two files) using an input file with the PHPMailer library? So far I have been able to send it, but I need to add more attachments. $mail = new PHPMailer(); $mail->IsSMTP(); $mail->SMTPAuth= tr...
asked by 01.11.2017 / 18:05
3
answers

PHP include does not recognize XML file

I have a php project in a structured main folder as follows: Container folder: Folder config XML file conexion.xml Folder php sub-folder bd PHP file conexionbd.php PHP file consultas....
asked by 06.11.2017 / 19:48
1
answer

How to consult records between two related tables in laravel

I want to make the query of a section table and of it to show the data of another table that is related, called semesters. I need help on how to consult it in the controller and how to display the data in the view My controller public...
asked by 06.11.2017 / 20:30
1
answer

How to fix: 'Creating default object from empty value' in Laravel? [closed]

On the blade I have this code: @foreach <tr id="{{$employee->id}}"> <td class="visibleemployee"> <form action="{{route('admin.employees.cambiarVisible',$employee->id)}}"> <button type="button" id="buttonchangevisib...
asked by 30.10.2017 / 10:30
1
answer

Error query from php, function bind_param ()

I need help with this: <?php error_reporting(E_ALL); ini_set('display_errors', '1'); include_once 'includes/funciones/funciones.php'; session_start(); usuario_autenticado(); if(isset($_POST['submit'])) { $nombre = $_P...
asked by 28.10.2017 / 15:10
2
answers

Read complex XML with PHP

Good day, I have an XML file which I have difficulty reading, my problem is in the labels, since they are not simple labels, the Teachers start with cfdi and the ones that have internally you start with ecb, which are what I I'm interested in ge...
asked by 19.10.2017 / 15:52
1
answer

How to enter a varibale in a name attribute in a form collective input?

I have a laravel blade form, using the input of the laravel collective form, for example: <div class="form-group col-xs-4"> {!!Form::label('Titulo de modalidad','Titulo de modalidad:')!!} {!!Form::text("cancion5","val...
asked by 20.10.2017 / 03:34
1
answer

How do I execute a procedure in laravel?

What kind of friends do I come to ask for your help, I am working on laravel 5.4 for some issues I have to execute a stored procedure that performs an insert and returns the id of the saved record, my question is how do I receive the id that ret...
asked by 20.10.2017 / 04:17
2
answers

If a result is found How can I block the form?

I am doing the validations for the fields of my form, and one of these, is that if the value written in a field, in this case rut_usu is in the database, it is blocked the form, and self-approach the input again to modify its value. I'm doing...
asked by 13.11.2017 / 13:49
1
answer

Autoload and Namespaces in PHP

I can not link the php autoload with the namespaces of each class, I have the following directory App Controller usuarioController.php public index.php .htaccess And in each file I have the following .htaccess Options -Mu...
asked by 08.10.2017 / 18:24