Questions tagged as 'php'

1
answer

JSONArray eliminate duplication-

Given a JSONArray with several JSONObects inside with the following structure: [ {"Id_temp":"1","temperatura":"20","Insertado_temp":"2016-08-16 12:30:29"}, {"Id_press":"1","presion":"34","Insertado_press":"2016-08-16 16:18:36"...
asked by 08.09.2016 / 19:07
1
answer

When saving a data in a nested table based on another table it loses data

I have a nested table where projects and students are stored called Proyecto_alumno, it has the function of registering students to the projects, the students and the projects are saved separately. It happens that when enrolling students to a...
asked by 08.09.2016 / 10:28
1
answer

Format a php report to be printable in pdf format using FDPF

It has the following report in php which I would like to give the format to be printable in FPDF <?php include 'conexion.php'; $proyecto=bd_rep1(); $alumno=bd_rep2(); $tutor=bd_rep3(); $alumnoi=bd_rep4(); $tutora=bd_rep5(); $asistema=bd_rep...
asked by 09.09.2016 / 19:57
3
answers

Send Table Data MYSQL-PHP to Another Table with FORM - $ _POST - foreach

I have a php table that is filled with a mysql database ... <table class="table table-striped"> <thead> <tr> <th class="text-center" colspan="24"><inpu...
asked by 24.08.2016 / 20:50
1
answer

How can I make my users know my new updates (Feedback)? [closed]

I have a page where I will upload podcast, Videos and Articles, I would like to know how to do that when I upload or better, share my videos on the website at the beginning of it, have the new updates. They are shared through youtube, n...
asked by 25.08.2016 / 16:42
1
answer

How to send an email with php with several attachments?

Hello, I have a system that sends mails with attachments but only works with a file, that is, it just sends a file. this is my html code <form id="" class="form" name="sentMessage" action='php/enviar_cv.php' method='post' target='_self'...
asked by 26.08.2016 / 16:19
1
answer

Use ajax in cakephp 3

Hi everyone, how are you going to see I have a function inside my controller AdvertisementsController something like that public function listsize($article = null) { if ($this->request->is('get')) { $query_sizes = $this->A...
asked by 29.08.2016 / 17:40
1
answer

htaccess does not work with Virtual host with Xampp

I have an error with the local server, it does not work with the .htaccess friendly urls, before I used mamp pro and did not ask for anything, now in ubuntu 16.04 I have mounted a server with XAMPP, for the friendly urls I had to mount VirtualHo...
asked by 02.09.2016 / 01:02
1
answer

Check using max function in cakephp 3

Hello everyone, as you will see I have this query in sql SELECT MAX(id_alternativa) FROM pregunta_alternativa WHERE id_pregunta = 7 which I'm doing in cakephp using the max function of the framework public function register() { $query...
asked by 11.08.2016 / 15:47
2
answers

. htaccess does not load css or images

My next error is with the htaccess I do not load the css files or anything RewriteEngine On RewriteRule ^blog?$ web.php RewriteRule ^blog/c/([0-9]+) web.php?id=$1'     
asked by 11.08.2016 / 02:07