Questions tagged as 'php'

0
answers

Save user id of web application in MySQL audit table

I have the following TRIGGER which inserts certain specific data for the purpose of auditing. I need that in the field Audit user the id of the user who started the session in the system and not the one in the database is saved. DELIMITER //...
asked by 26.11.2018 / 00:31
1
answer

Problem to download php files I get ZERO BYTES

I'm trying to download files. I recognize the names of the entire file. But when downloading it does it in ZERO BYTES. Let's see if someone sees something irregular. Thank you! The file is inside the / files / directory on the site. <?ph...
asked by 26.11.2018 / 03:15
0
answers

Fetch api, Retrieve response data

I have a code in javascript that sends an id by POST, to a php file (vs 7.2.9) that consults with sql to a DB, and I need the html code it generates to make a report with dompdf Javascript code let cedu = snapshot.val().cedula;...
asked by 05.11.2018 / 21:59
0
answers

Import a CSV file to MongoDB with PHP

I am trying to import a csv file into a mongodb collection, I have seen that it can be done through the mongoimport command, however I need to do it through php because I want to validate the entered data afterwards. So far I have managed to ope...
asked by 05.11.2018 / 21:54
1
answer

validate user

Good I have a doubt I have made a login but the problem is that if a user has not logged in you can enter the page by putting the extension; How can I verify if that person has logged in and if he has not already sent him to login?? <?php...
asked by 05.11.2018 / 15:38
0
answers

display data from a mysql query in input text

good morning I'm trying to make a type search engine by rut which consists of the user entering the rut and displaying the user's values in the input text of an example form: name: felipe, email: felipe @ gmail. com etc so far it works fine for...
asked by 05.11.2018 / 13:23
2
answers

Why does it jump directly to Pepsi Cola and not the selected option?

I have the following Index: <html> <head> <title>Productos</title> </head> <body> <h2>Productos</h2> <hr> <form method="post" action="productos.php"> Elige tu producto...
asked by 09.11.2018 / 02:45
0
answers

Remove in a file the https

Hello, I have a doubt, by htaccess I am forcing the web to load by https, but is there a possibility in a file php that is read as http? Greetings * If the question arises why I need this, it is for a payment gateway, that activating t...
asked by 09.11.2018 / 01:29
0
answers

Bar Graph

I'm doing a bar graph I have this code that paints the bars of the gray graph but what I want is that it is a color for each bar for example for the bar one = green the two = yellow and the three = red but I do not know how to put another color...
asked by 05.11.2018 / 18:40
1
answer

How to load a table with jquery through a filter made with a button that takes the value of a select?

I am trying to load my table using jquery but it is not possible for me, I do not know how to pass the value of the query to the query, I have made several attempts with JSON but it does not work for me, if someone can explain it I would appreci...
asked by 05.11.2018 / 18:51