Questions tagged as 'php'

1
answer

How to create an index with php and mpdf

In the following fragment of my code I make a query to a Mysql database and create a pdf page with Fpdf but when I show the index of my file it appears in white.Code: $query = mysqli_prepare($con, "SELECT titulo_editado,texto_editado as conten...
asked by 16.10.2018 / 17:54
1
answer

Convert result Json objects in List Json ?, using php and mysql

PHP code to show results of a query to MySQL (returns json object) if ($result = $mysqli->query("SELECT ID,NOMBRE,NICK,PASSWORD,EMAIL FROM ud_Usuario")) { // check for empty result if (mysqli_num_rows($result) > 0) {...
asked by 16.10.2018 / 15:49
1
answer

when entering the date and time in an issue it appears out of sync with the local time (only the time)

<?php session_start(); if (!isset($_SESSION['email'])) { header('Location: index.php'); } $fecha = date("Y-m-d H:i:s"); ?> <!DOCTYPE HTML> <html> <head> <title>ENCUESLAB</title> <...
asked by 16.10.2018 / 17:30
1
answer

HIDE A DIV IF A VALUE FROM DB IS NOT OBTAINED IN JS

The following code obtains information from a database and stores it in a respective div of a modal and then displays it on the screen: eventClick:function(calEvent,jsEvent,view){ $('#titulo').html(calEvent.title); Fech...
asked by 04.10.2018 / 13:24
0
answers

With this code the fields are run, what could be failing? they are not all the fields but if some of them come out of the database

<?php /*******EDIT LINES 3-8*******/ $DB_Server = "localhost"; //MySQL Server $DB_Username = "pcomp"; //MySQL Username $DB_Password = "KneTPuxJ77f4YLNX"; //MySQL Password $DB_DBName = "base"; //MySQL Database...
asked by 04.10.2018 / 15:51
0
answers

It does not show data when downloading the excel

<?php /*******EDIT LINES 3-8*******/ $DB_Server = "localhost"; //MySQL Server $DB_Username = "pcomp"; //MySQL Username $DB_Password = "KneTPuxJ77f4YLNX"; //MySQL Password $DB_DBName = "base"; //MySQL Database...
asked by 04.10.2018 / 14:13
0
answers

Create array according to the first letter

Hello community I have a array ordered ALPHABETICALLY but if the name is repeated twice jose - jose create a% new array with key of J ie array with the first letters of each name if it is repeated, that name...
asked by 04.10.2018 / 14:40
0
answers

Send user log to a table using a php button

Good morning! I have a button in php like this echo CHtml::button(Yii::t('site', 'Help (F2)'), array('id' => 'run_example')); Which performs a function of js in the following way $("#run_example").click(function(){ Sideshow.sta...
asked by 04.10.2018 / 15:26
0
answers

Import CSV file from Facebook API

I need to download the cvs generated by the ads / promotions I'm using Marketing API and php ads but I can not create the http request, this question was asked before and they created the link in the following way: https://www.facebook.com...
asked by 05.10.2018 / 03:26
0
answers

Update to external database from android

The problem is the following, in my application I try to change a database record from android, which would be a user's password, the problem comes when pressing the button that should do the action does nothing , neither shows error message, no...
asked by 08.10.2018 / 16:42