Questions tagged as 'php'

4
answers

Upload Files with Php and Ajax

I am new with Ajax I try to upload files to my folder and store the path in my MySQL, these are my advances: I have my modal window, with which you place the data of the file: <form class="form-horizontal" action="../../phpcrud/create_do...
asked by 14.03.2017 / 19:06
4
answers

Process large CSV files

Good morning folks, I have a query to ask you. I have to upload and process large CSV files with many records. Currently they are uploading and processing via AJAX but the browser hangs while the server is running correctly but does not give a r...
asked by 15.03.2017 / 14:23
1
answer

Error using Ajax Uncaught RangeError: Maximum call stack size exceeded

I want to pass some data by POST using AJAX to insert in database I am working in laravel 5.1. My question is this: Is there a limit to the parameters that can be sent by Ajax? Because I have several and if I remove one nothing happens, in...
asked by 04.03.2017 / 13:29
3
answers

How to reset a file type input?

I have a problem with the following code, what I want to do is that if the image is larger than 3.67 MB, I warn the user that it is very large, and that he does not select the image, since when he gives the alert the user the image is still sele...
asked by 04.03.2017 / 17:26
1
answer

Save multiple checkbox, inputs text together in a database form with ajax

I have these two but I do not know how to combine them to save as much as a text image and multiple checkboxes or if they have any other that they can provide me. $(document).ready(function(){ $("#formulario").submit(formulario1) func...
asked by 05.03.2017 / 22:09
1
answer

Delimit certain dates in a range with input type = date, datepicker or similar

I am working with ranges of dates, for a holiday period, in the end it turns out that I never take into account Saturdays, Sundays or holidays. example. 01-02-2017 & 09-02-2017 which is equal to 8 days of holidays in this case, b...
asked by 21.02.2017 / 18:20
2
answers

Fields in a form that are not completed are saved as NULL in the database or ignored in the query

I have a form with different inputs, of which the vast majority are not necessary to fill (and some of these are inputs that are related to other tables), my question is, when these inputs are empty, how do I do that are not added in the insert...
asked by 21.02.2017 / 14:01
1
answer

How to add 12 hours to the current date, save it in an accumulator and re-add in php

I am learning php and I have this code: <?php date_default_timezone_set('America/Monterrey'); $f = date (" d\of F\of Y, H:i"); echo $f, "<BR>"; setlocale(LC_TIME, "es_Mx.utf8"); $f2=strftime("Today is %A %d of %B of %G and is %H:%M %p...
asked by 16.02.2017 / 01:27
1
answer

When do I stop using mysql_comando commands and what version of php?

I would like to know when (year) the commands with mysql_<comando> were stopped and in which version of PHP,     
asked by 11.02.2017 / 16:52
1
answer

Problems with a cycle that gives the error "Notice: Undefined variable"

I'm doing a dynamic gallery with PHP and MySQL, but when it comes to making a cycle it gives me these two errors    Notice: Undefined variable: photos in   C: \ xammp2 \ htdocs \ course_PHP \ practices \ gallery_dynamics \ views \ index.view....
asked by 09.02.2017 / 22:04