Questions tagged as 'php'

1
answer

How to delete mysql database image and have it deleted from the folder where it was saved? [closed]

What I want to do is that the extention that is saved in the database is deleted but the image of the folder where it was saved is also deleted     
asked by 12.03.2017 / 02:33
1
answer

Implement toastr in my contact form

How can I implement the Toastr JS in my contact form. I want to leave toastr.success and toastr.error instead of the alert() I have now. This is my code: <?php if(isset($_POST['email'])) { $email_to = "info@micorr...
asked by 18.02.2017 / 15:59
3
answers

Concatenate multiple rows in a single mysql

I really do not know if it will be possible, I hope for answers Join rows according to the name and name, doing the operation: (weight * note) / 100 at the end add each result and put it in a single row, leaving something like this: nombre...
asked by 18.02.2017 / 20:05
1
answer

fadeIn jquery in the calling of a function

the problem is that I need to apply fadeIn a function success: function(data){ console.log(data); viewUser(); } when the success occurs the viewUser(); will update the user table, the problem is that I would like...
asked by 07.02.2017 / 13:51
1
answer

PHP does not print JSON array

Hi guys I need your help in a php module that I'm building, I just want to print a list of cities in JSON but when I do not print anything, I do not know what may be happening: this is my code: <?php require "../model/Ciudad.php"; $_POST...
asked by 20.02.2017 / 19:20
3
answers

Problem with fetch_all (), does not get rows

I'm doing an exercise with fetch_all() , it's supposed to show the data of the BD in an array but it does not show anything. <?php try { require_once ('includes/funciones/bd_conexion.php'); $sql = "SELECT * FROM 'registros';...
asked by 19.02.2017 / 19:11
1
answer

Get the contents of an array or PHP object

I improvised a code that reads the XML files of a folder, one after another, and retrieves the information of some specific fields (title and summary), and I want to pass this information to a file CSV to one row per file (one column with ti...
asked by 27.01.2017 / 14:04
0
answers

function fetch_all of the objetvo mysqli does not give results

I have the following code. class IQTCulturaBD{ protected $mysqli; const LOCALHOST = 'localhost'; const USER = 'xxxx'; const PASSWORD = 'xxxxxxx'; const DATABASE = 'fffff'; /** * Constructor de clase */ public function __construct() { try...
asked by 27.01.2017 / 03:53
1
answer

Firebase Custom Auth - signInWithCustomToken creates the user without Email

I am using the Firebase Custom Authentication System for an app that I am developing with Ionic (v1) and I use Laravel 5.2 as an Auth backend. When a new user registers, they generate a token with laravel (using firebase / php-jwt) and return it...
asked by 04.02.2017 / 16:39
1
answer

Change sql query

I have the following query to obtain an average of some data of the 52 weeks of the year in the following way: $dates = array(); $firstDate = date("Y-m-d", strtotime('first day of January 2016')); $lastDate = date("Y-m-d", strtotime('last day...
asked by 03.02.2017 / 19:42