Questions tagged as 'php'

1
answer

Insert iframe time on Google map

I have inserted a google map created on my sites with the google application. This map is a pop-up window that opens when I hit a button and it takes up 100% of the screen. What I want now is to add an iframe that shows the time, but I can not g...
asked by 15.01.2017 / 17:27
1
answer

Show name of the person who is connected to the system

I am making a system of military sanctions from scratch. with PHP and MYSQL Already install the user LOGIN system My question is: How do I show a welcome message with the name of the user who logged in? THE FOLLOWING ERROR COMES OUT:...
asked by 16.01.2017 / 03:06
2
answers

How to include an HTML template to send by PHP mail?

I need to pass the variable with a template to send and organize the code. define(FULLNAME, $fullname); define(EMAIL, $email); $body = include('../templete/welcome.php?name='.FULLNAME); $header = "From: Team app <[email protected]&...
asked by 22.10.2016 / 02:23
1
answer

Register events in Laravel without using EventServiceProvider

I am developing an application in laravel organized in Modules. Each module has a ServiceProvider that instead of extending from ServiceProvider they extend from a class of their own that adds certain functionality. The problem...
asked by 03.10.2016 / 08:14
1
answer

How to detect non-ID users and remove them from Google sheet

I have the following code in a PHP code in my contactform.php which what it does is take the data and insert it in a google sheet. if(!empty($_SESSION['nombre'])) { $dataAgregar = array('gclid' => $_SESSION['gclid'], 'nombre' => $_SESSIO...
asked by 13.10.2016 / 08:36
1
answer

redirect when downloading pdf in FPDF output

My question is and I hope you can answer it I am using the fpdf library in which I have to click on the send button, redirect the PDF and download it, the problem is that when using the $pdf->Output('D','entradamateriaPrima.pdf'); I c...
asked by 29.09.2016 / 15:13
1
answer

How to make records in the database with PHP?

This is the code I have made <?php $enlace = mysqli_connect("localhost", "root", "", "loteriav2"); if (!$enlace) { echo "Error: No se pudo conectar a MySQL." . PHP_EOL; echo "errno de depuración: " . mysqli_connect_errn...
asked by 27.08.2016 / 23:28
2
answers

script to support mysql databases in php, but I need to migrate to mysqli

<?php backup_tables('XXXXXXX','XXXXXXX','XXXXXXX','XXXXXXX'); /* backup the db OR just a table */ //En la variable $talbes puedes agregar las tablas especificas separadas por comas: //profesor,estudiante,clase //O déjalo con el asterisc...
asked by 26.08.2016 / 22:04
2
answers

Enable INPUTS of a SELECT with Js or jQuery [duplicated]

I have a select , and depending on the value of select in my case the value="2" I want to enable two input and if it is not in value="2" disable them <div class="row"> <div class="col-md-3">...
asked by 26.08.2016 / 15:18
1
answer

htmlentities () expects parameter 1 to be string, given array

This is my first post and I hope you help me and be able to help many of you in the same way. As you saw in the title, it generates that error, and that happens to me now that I'm learning Laravel 5.1 This is the error    htmlentities () e...
asked by 20.09.2016 / 03:41