Questions tagged as 'php'

1
answer

Autocomplete jquery text field from mysql (use the same field several times to add more options) [closed]

I do not have much idea of jquery. I need to make an autocompletable text field, look for what I have in the database, that part I have covered more or less with this code here: link But what I need is something more complex and I do not ev...
asked by 16.01.2017 / 16:12
1
answer

Store array of a loop

I need to store the results of a series of different queries in mysql loop in one array to compare it with another and see the differences and delete what is left over. Is there any way to do it? At the moment I do not have any code except...
asked by 06.01.2017 / 20:38
1
answer

Generate a link in file download php that changes color when clicked

Good morning. My intention with my code is to send you a list of hyperlinks to download to a user. The idea is to change the background of the hyperlink when a person clicks and is marked (either with the font color changed or the link has a dif...
asked by 06.01.2017 / 20:12
1
answer

Error inserting records in php

I try to store values in my bd with php5 but for some reason I get an error, here is the html and the php: HTML: <!DOCTYPE html> <html> <head> <title>Registro.</title> </head> <body> <form act...
asked by 01.01.2017 / 20:15
1
answer

Read access file from php [closed]

Is it possible to directly read an access file from php, without using odbc or dns? I can do it with excel files without problems, but using only the access file can it be done? This is to import data to a mysql database on the web. Thanks     
asked by 11.01.2017 / 18:35
1
answer

Send a PDF report with PHP on certain dates automatically

Good afternoon: I have the need to send PDF a Query of MySQL . That is, I need to send a report in PDF according to a query and I need to send it on the 14th and 30th days of each month. This could perhaps send it with phpmailer...
asked by 10.01.2017 / 18:10
1
answer

Google charts: error All series on a given axis must be of the same data type

I have the following code that is carried by ajax to the google chart function. $exgetChartDelitos =$conexion->Query("SELECT delito, COUNT(*)repes from geo_nsn group by delito having count(*)>1"); $numeroFilas = mysql_num_rows($e...
asked by 11.01.2017 / 16:12
3
answers

Update only the field that has been sent using PHP and MySQL

I'm doing a blog, and when I edit that blog for example the title, the other variables are declared as undefinex , what can be done in this case? $body = $_POST['body-post']; $title = $_POST['title-post']; $img = $_POST['avatar...
asked by 15.12.2016 / 23:05
1
answer

Condition in php with function and strtotime does not validate a period of dates

I have a date that I want to condition. 12-27-2016. I want to check if within the period of dates from 20-12-2015 to 12-20-2016 it is fulfilled or not, as well as from 20-12-2016 to 20-12-2017. In the case of the first period 2015-2016, the date...
asked by 27.12.2016 / 22:36
1
answer

Get the length of the variable stored in the database table with codeigniter

It turns out that in my database I have a table called votes , in which within the column option I store a and b Then I want to get the total amount of 'a' stored in the table as well as the total amount of 'b' stored in the table....
asked by 22.12.2016 / 20:42