Questions tagged as 'php5'

0
answers

Problems with file_get_contents ()

I was doing the tests on a local server (localhost) with Wampp, in which the following things worked perfectly, which kept the copied image of the given route to another local server folder. At that time the script had on the pc (wampp) $image...
asked by 09.07.2018 / 20:53
0
answers

Cloud of tags in php and mysql

I'm making a website where people can download images, you can search by categories, but due to the infinite variety of images the categories could only be very generic, which is why I had thought of adding a system of Tags or tags, I have to do...
asked by 19.06.2018 / 18:25
1
answer

Sum of fields to graph

I make a system that are basically work tickets with which one of the main objectives is to measure how many cases are prioritized (low, medium or high), my DB is designed with foreign keys so I need to graphing show me the sum of those lines wi...
asked by 16.06.2018 / 05:19
0
answers

How could I go through a file in php and search line by line for a phrase

I am learning to program in this language and I have a problem, I can not extract the line that contains a particular phrase. I leave the code in case you can help me or guide me a little, since it only prints false and never finds the search...
asked by 15.06.2018 / 03:32
1
answer

How to save and read an IP only when the last range of the IP has a difference of 10?

I do not know if the question is well formulated, but with the code below, I get the user's IP and save it in a .txt file. and when the user tries to enter again, he reads the .txt file and sends a message saying that his IP has already been use...
asked by 13.06.2018 / 12:23
2
answers

error when saving Mysql query in PHP array

The problem is that when I try to save the query sql in a PHP array and then send it as JSON, nothing is sent or a single record is sent. I show you the code. $("#btn-send").click(()=>{ var datos_to_send={data:"estados"}; //Esta i...
asked by 19.06.2018 / 21:16
0
answers

Does not show records with NULL fields (QUERIES)

Good evening I make a form that works as a computer equipment log, in my BD I have null fields (I have no problem with the insertion). The problem I have is that in mi modulo de consultas I do not see those records if there are null f...
asked by 14.06.2018 / 03:15
0
answers

Warning: mysqli_fetch_array () expects parameter 1 to be mysqli_result, boolean given in line 34

I make a module where you can filter the records by different fields Control No. id_Control , Company Type idctg_empresa and by Shift idctg_turno . In my DB is designed so that in my table trabajador have foreign keys o...
asked by 03.05.2018 / 00:08
1
answer

Add value of a variable to a date

I am trying to add the value contained in a variable to a date, and that the result is another date. $hoy = $now->format('d/m/Y'); $dias = 36; $ newDate would be the result of adding to today's date the days that the variable contains. I...
asked by 25.04.2018 / 15:59
1
answer

Problems updating data by a bulk upload with an excel.CSV file

I make a module in which is a data update but it is massive by means of an excel.CSV, I have the following fields in my "worker" table, some are foreign keys of other table: id_ControlPrimaria nombre ap_paterno ap_materno NSS CURP...
asked by 09.04.2018 / 16:15