Questions tagged as 'php'

1
answer

How do I resolve a file upload error code 2?

<form enctype="multipart/form-data" action="eje02.php" method="post"> <input type="hidden" name="MAX_FILE_SIZE" value="2000000"/> Send this file: <input name="userfile" type="file" value="" /> <input type="s...
asked by 03.02.2018 / 20:08
1
answer

make a variable query generated within another variable

I have this query to see if the file exists inside a folder called _sellos <?php $nombre_fichero = 'C:\xampp\htdocs\_sellos92-2018-E01-sellos.pdf'; if (file_exists($nombre_fichero)) { this name 7992-2018-E01-sellos.pdf is obtained...
asked by 22.01.2018 / 14:34
1
answer

Temporarily store input data for a multicita response

How do I do it so that when I click the Reply button instead of taking me directly to the reply.php page, I temporarily store the data so I can quote more than one response by clicking on the reply button of different comments and taking me fina...
asked by 23.01.2018 / 08:20
1
answer

Transactions or queries prepared in PHP

I am learning PHP and for now, depending on how we are working with the database, we can do it in two ways (according to what I am learning, correct myself in any case): -mysqli       -For procedures       -Of objects -PDO By means of t...
asked by 22.01.2018 / 01:08
2
answers

How to add different actions to the buttons generated in php

Good, You are trying to add an action to each button that is generated with a query, as you can see I do 3 actions for each items : modify | See | Approvals . See PDF files in How can I add one action to each button for each record...
asked by 18.01.2018 / 20:00
3
answers

I errrely print the json in php

I am trying to bring the data of a bd in mysql, it brings me the last data that has been entered into the bd, but it does not bring all the data <?php include('conexion.php'); $json = array(); $link = conectarse(); $select...
asked by 11.06.2018 / 03:38
1
answer

Accommodate JSON data with PHP

I have some problems to accommodate data obtained from an API, they come in "JSON" format, try to accommodate them using an "array" but I did not succeed. The data that the API throws at me when making a "Get" are the following: { "pag...
asked by 13.06.2018 / 16:24
1
answer

get value to a post in form

Guys a little doubt, please thanks I have a query and I get the value <textarea name="autor" id="autor" style="width: 100%; min-height: 28px;" value="<?php echo $row["Autor"]; ?>" disabled><?php echo $row["Autor"]; ?></...
asked by 14.06.2018 / 22:12
2
answers

Help with the correct functioning of html2pdf in php

I need to generate a pdf with personal information of a user (personal data), but I need a button that starts the download on the same screen, I do not need to open any other window to view it. Then. I already have all the HTML with something...
asked by 13.06.2018 / 05:56
1
answer

Group and add in mysql. to create a report

I have the following table and I want to Group and add as in the following example that I put to you. I commented that this table I will have in a view since it is the result of several tables. =) DESIRED RESULT ... I do...
asked by 23.01.2018 / 05:13