Questions tagged as 'php'

2
answers

Use Json in php

Good afternoon I would like to know how I can pass data obtained from api key web, which are serialized. I want to pass them to html table. It comes like this: [{"Plate":"XC9888","Year":"2004"}]1     
asked by 06.07.2017 / 18:45
1
answer

Do a MATCH AGAINST query but only the first word?

Good morning. I am working with a php script of a search engine that performs a query to a database mysql using MATCH AGAINST in a column with FULLTEXT INDEX the problem is for example, if in my database I have "Food Mexicana "and in the searc...
asked by 02.10.2017 / 18:28
3
answers

Prolong login session to angular

I comment, I have made a website in which for the topic of login and registration I use php with mysql. But in the front end I have an application with angularjs and in one of the sections I want to filter by the id of the current connected user...
asked by 05.10.2017 / 12:31
1
answer

Upload two files to PHP using an AJAX using two attach buttons

I have the following html with two buttons type file <label>Adjuntar Recibo de gas escaneado en JPG o PDF</label> <input type='file' name='archivoReciboGas' id='archivoReciboGas' /> <br>&l...
asked by 06.10.2017 / 05:11
2
answers

How can I compare range dates correctly php

If I have a date in the database 30-06-2017 and 25-07-2017. public static function getByBETWEEN($fecha1,$fecha2){ $sql = "select * from ".self::$tablename." where date_at > \"$fecha1\" and date_at < \"$fecha2\""; $query =...
asked by 10.06.2017 / 01:35
2
answers

Insert 2 databases at the same time, one in the cloud and the other local - CodeIgniter

I'm working on a project which will be handled locally, but it has to replicate to the database that is in the cloud, I'm using CodeIgniter, and I really do not know how I could do it I leave you what I have planned to do. This would be th...
asked by 18.05.2017 / 19:44
1
answer

Create post with ajax and laravel

Greetings to all, I have an inconvenience with ajax and I am quite new with js, I have a comment system in laravel, I have already managed to edit the comments through ajax but now I have a problem when creating them, this is my code. Here co...
asked by 11.06.2017 / 06:41
1
answer

save dynamic form data

Good morning, I hope you can help me resolve this question because I am new to this. I am developing a form to generate surveys dynamically, in the form you can add questions, each question can be added an indefinite number of options as shown i...
asked by 25.07.2017 / 20:57
3
answers

Each returns null in relations laravel 5.4

I have been practicing laravel and there is something that does not work for me and I do not finish understanding or reviewing the documentation. It turns out that I want to call the related objects between tables to get their other da...
asked by 21.07.2017 / 06:44
2
answers

Insert data in the database without refreshing the page

I'm trying to insert data from a chat in my database, my chat is doing it with php and ajax since it does not demand so much robustness, I have a function but it does not work, this is the form I want to send <form method="POST" onsubmit...
asked by 25.07.2017 / 02:01