Questions tagged as 'php'

3
answers

Create PDO query with the values of an array

I am trying to generate a MySQL query with the data I have captured in a array . array(2) { ["area1"] => array(3) { [0] => string(5) "item1" [1] => string(5) "item2" [2] => string(5) "item...
asked by 04.04.2017 / 18:27
2
answers

Download server document

I need to download a document from the base of the database, it is a pdf, but it is downloaded to me blank, can someone tell me what my code fails? The sql is correct .... $id = $_GET['id']; $sql = "SELECT * FROM documents WHERE id='".$id...
asked by 26.03.2017 / 18:59
1
answer

Help with AndroidLoginyRegistro with PHP

I downloaded an Android project that consists of a login and registration, it's the easiest and easiest one I found. The issue is that this project to register requires user, mail, age and sex but I only need username and mail. I ask for your he...
asked by 21.04.2017 / 15:45
1
answer

Private message system in php

I'm trying to make a system of private messages in PHP, at the moment I have managed to show the private messages that a user has, with the following code: <div> <?php require_once "messages.php"; //obtengo todos los men...
asked by 07.08.2017 / 20:26
1
answer

Ajax call by POST executes php function twice

Good morning, I have a problem with an ajax call to a controller method. The problem is that when the method is executed, I record the same records in DB twice. I would be very grateful if anyone could shed some light on the matter. Ajax Code...
asked by 08.08.2017 / 15:32
1
answer

Graphics with Highcharts, JSON and CodeIgniter

Someone to help me how to make a Grafica using Highcharts in CodeIgniter using JSON. url:('<?= base_url(); ?>index.php/ejemplo/ejemDatos/datos', function (data) { // create the chart Highcharts.stockChart('datos', { //datos es el id...
asked by 07.08.2017 / 23:29
3
answers

Data not inserted with query prepared mysql-php

I am making a loan system in which a teacher will request a loan, which will record his identification number, the plate or serial number of the item he requested, the current date and the administrator who lent him the item at that moment, who...
asked by 06.03.2017 / 21:06
0
answers

problem when printing the text is compressed [closed]

I have a code of my work that I must modify, that prints tickets in a printer epson of the fiscal type. I had no problems, until I need to add a poster only on some tickets, which I call a sign. Everything is printed on a PNG where I already hav...
asked by 07.03.2017 / 15:27
0
answers

Robots subscribers to Newsletter Mailchimp [closed]

I use mailchimp to implement a form on my websites to make newsletters. These last days I have received many messages from fake users (robots) who have subscribed to my newsletter. To avoid this I have used the reCAPTCHA option to improve the...
asked by 23.01.2017 / 20:09
1
answer

Show unicode texts (other languages) in my table made in php using ajax and jquery

Hello, I have made a table in php in which I will show several contents and by which one can search for these contents in the table. But a question arises when I try to write letters in other languages, it shows me as ? with interrogation...
asked by 17.03.2017 / 20:17