Questions tagged as 'php'

1
answer

Show records grouped by month in a MYSQL query

I have the whole system created, only the reports are missing, the main table is averias which has as attributes campo , fecha and other irrelevant, the SQL I have so far is as follows: SELECT centro, MONTH(fecha) as mes, C...
asked by 29.05.2018 / 03:20
2
answers

Warning "Undefined variable: row in ..."

I have tried to follow a tutorial and adapt it to the need to autocomplete a form by means of an input (with Send button). I get the error:    Notice: Undefined variable: row in C: \ xampp ... \ patientsearch.php on line 61. It also sh...
asked by 29.05.2018 / 06:16
1
answer

Can you relate 2 tables of different databases by means of a foreign key?

I have 2 database Mysql which can be ejemplo1 and ejemplo2 , one of which ejemplo1 I can not touch its structure at all so I was forced to create my own ejemplo2 , the issue is that the first ejemplo1 has...
asked by 30.05.2018 / 18:12
2
answers

Print sql query result in 2 different selections with html and php

please help, the problem is that in I have 2 select tags which create the option tags with the result of the query sql, in the first select it works correctly but in the second select they do not load the results, my code: <div id="crea" cl...
asked by 30.05.2018 / 17:12
1
answer

How to change the language of flatpickr?

I have a date field in my view that is as follows: <input class="flatpickr flatpickr-input active_es" type="text" placeholder="Select Date.." readonly="readonly"> and a javascript where I use Flatpickr: function form__date_register(...
asked by 31.05.2018 / 02:08
1
answer

How to show records of 2 related tables?

I have a CRUD with multiple files, create 2 tables, one is an activity where all the data goes and another image where only the files associated with the activity go. The problem happens that if user wants to add 2 or more files to the act...
asked by 01.06.2018 / 01:44
1
answer

Fpdf will be opened in a new window

my pdf is created correctly but what I want is that it will be in a new window This is my code but I will open it in a new tab and not in a window <input type="submit" Value="Ver Reporte" name="" class='btn btn-success' onClick="documen...
asked by 07.06.2018 / 19:42
3
answers

Php show label img in echo

I'm trying to show an employee's data; at the end I want to show your photo which is in the directory where the file is and has the extension .jpg echo 'Hora de salida '.$horaDeSalida.'<br>'. 'Valor Hora '.$valorHora.'<br&...
asked by 07.06.2018 / 01:19
1
answer

add a constant to a string -php

I would like to know if it is possible to add a constant String to another String . Let me explain; I have a cycle that calls me 'X' number for a series:    53148 The first three numbers are a series of fecha 06 and th...
asked by 07.06.2018 / 03:52
1
answer

Show image brought from a database in Android Studio

We want to show an image, previously saved in a database and shown in the android layout but we do not know how to do it. At the moment we have this: AccesoPHP aPHP = new AccesoPHP(); is = aPHP.ejecutar("http://"+IP+"/imagen.php");...
asked by 08.06.2018 / 18:04