Questions tagged as 'php'

2
answers

getElementById when the id is a php query

Good morning I have a checkbox with the id defined by a result of an sql query in php <input type="checkbox" id="<?php echo $row['identificacion']."1"; ?>" onchange="return habilitar()"> and I'm trying to put it in a getElementB...
asked by 05.01.2018 / 16:45
1
answer

How to validate the number of columns to import PhpExcel?

Good morning, Can someone please explain or tell me how to do it so that they do not let me import files that are passed or have fewer columns than the established ones? Let's say if my table where I'm going to import has 8 columns from th...
asked by 05.01.2018 / 20:11
1
answer

Misuse of confirm () with PHP and Javascript

I have a table with sorted data in rows and columns. A column is for delete , with checkboxs selected, when we press the DELETE button and a " confirm () "to confirm the deletion or be canceled. In the second question I have the prob...
asked by 06.01.2018 / 18:59
1
answer

Delete checkboxs when canceling confirm ()

I have a table with data and some checkboxs corresponding to their respective row. If I select one or several checkboxs and click Delete , you will ask me in a " confirm () " if I want to delete them. If I click on " Accept ", it deletes th...
asked by 06.01.2018 / 00:58
1
answer

Compare two multidimensional arrays with array_udiff

I have the following code portion to buy two fixes: $a = array( array('cuenta' => 1000), array('cuenta' => 2000) ); $b = array( array('cuenta' => 1000), array('cuenta' => 2000), a...
asked by 06.01.2018 / 16:40
2
answers

How to change the date format received by $ _POST?

I am developing a small application with PHP and HTML , and I see myself in need of changing the format of <input type="date"/> since it is the English format and I need it in Spanish. I have no idea how to do it, I'...
asked by 06.01.2018 / 20:05
4
answers

Add values of 2 tables in MYSQL

I have 2 tables with the same data, one from 2016 and another from 2017, I want to make a query that adds the data of both tables to make the total of 2 years.     
asked by 05.01.2018 / 17:53
3
answers

Notice: Undefined index using POST in php

<!DOCTYPE html> <html lang="es"> <head> <meta charset="UTF-8"> <title>Enviar Datos</title> </head> <body> <form action="procesaDatos.php" method="post"> Nombre: <br&g...
asked by 08.10.2017 / 15:50
1
answer

Upload an image to hostinger with web services

I have an account with hostinger and I want to upload an image through a web services with php I see that the image goes to the database but it is not recorded in the root folder of the hosting. I attach my php code which is very simple <...
asked by 09.10.2017 / 04:45
2
answers

call a php function when you need it [closed]

Good morning, I must make some checks to print "hello world" in case b = 1 ob = 2 I know that this can be done in an if with the operator or but the teacher wants the function printed by the "hello world" is called in the if of b = 1 or in the o...
asked by 10.10.2017 / 20:23