Questions tagged as 'php'

3
answers

JSON sent from PHP and read it in JAVASCRIPT

I have implemented a function in javaScript that takes the indicated value and then queries it with php in the database but when I came back with a php JSON and read it in javaScript I can not get the data JavaScript Code: function capturar...
asked by 06.10.2018 / 12:47
1
answer

Sort PHP Array

//Argumentos para hacer la Query. $args = array( 'post_type' => 'sectores', 'post_status '=> 'publish', 'posts_per_page' => -1 ); //Obtenemos las clinicas del sistema. $sectores = new WP_Query($args); //Si tenemos clinicas disponibles....
asked by 09.10.2018 / 07:31
1
answer

pass php matrix to html table

I am starting in PHP and I have been sent to create a table from a matrix, which is the following: $array_notas=array( "Matemáticas"=>array("Primer trimestre"=>3,"Segundo trimestre"=>10,"Tercer trimestre"=>7),...
asked by 19.09.2018 / 09:56
1
answer

Error in file search with define

I get this error !/usr/bin/php Failed to open ../gestionweb/includes/afip/certificado.crt But the file does exist, with the other files nothing happens: This is the instruction: define ("CERT", "../gestionweb/includes/afip/certificad...
asked by 19.09.2018 / 13:12
1
answer

Decimals when editing record with modal

Good morning when doing the edition of a record that is the total of the invoice I get the price as well; 1,500.00 € which is as I want, but when editing the record as I get 1,500.00, if I do not edit it becomes 1.00 € and if I edit it but leavi...
asked by 19.09.2018 / 05:32
1
answer

Show checbox already marked with jquery

I have a fullcalendar and clicking on some day will show me a form, the user enters the normal data and must select some people assigned to that event with a checkbox. (There all good). Image with created events: link Image of the regist...
asked by 18.09.2018 / 22:13
2
answers

how can I know when is the last item in for

I have a problem in php I am trying to know when the last element is not generated the last element that would be <li class="separator">&nbsp;</li> <?php $rama_cat="40-20-01"; $partes=explode('-',$rama_cat);...
asked by 01.10.2018 / 01:55
1
answer

How to upload multiple files with this code?

How can I make this code can select multiple files and print the names of the files (Incidentally the code adds digits to the file name) if(isset($_FILES['file'])){ //imagen uno $file = $_FILES['file']; // file properties $...
asked by 01.10.2018 / 03:32
1
answer

Call the value of a button to an input in a modal

I think it's something simple: In the image number 1 I have my stored value an id that is general when clicking on the button, what I want is that the same value that is stored in the value call it at the value of my input so that I can ha...
asked by 27.09.2018 / 23:49
1
answer

How to upload an image from a cell phone to the PHP server?

I have a problem uploading images to the server from a mobile device. When I run my web application from the computer everything works correctly, the images go up without problems. But when I do it from a cell phone, I do not load the images tha...
asked by 17.09.2018 / 18:32