Practicing AJAX, the following question arose:
When we want to do a POST towards PHP, we put in the attribute data of the AJAX object, the variable that we want its content to be sent.
Then in the PHP file we must make a POST of sai...
I am trying to perform a search for 2 fields, both are in the same table, I want to look for a data captured in the bd either by the name of the team that is what is captured or by the date when it was captured.
For now I can only search for...
I need to show the data entered by a user in a modal, which has a data select and enter an amount, these data must be shown in a table after being saved in DB
When saving them, the error I get is:
Warning: mysql_query () e...
I want to upload a file from a form in Laravel.
Input::file('imagen')->move('/public/imagenes/asdf',$producto->id.Input::file('imagen')->getClientOriginalName());
I tried this but it does not work, I get this error:
Call to a...
Example, I have a query mysql like this
SELECT * FROM post WHERE fecha >= $time;
where $time = current week
I also have a array with the days, which are grouped
$days = array('Lunes', 'Martes', 'Miercoles',...
I'm trying to insert several rows in the same query
Details:
I have several fields in the table, and only one field would have to be different in each row, the other fields would be identical in each row.
This is the code I have. but I do...
I have this array in php.
$error = array();
$error["error"] ="Tamaño máximo superado"
Before sending it I do this
$error = serialize($error);
$error = urldecode($error);
header("Location: subidaarchivos.php?".$error);
But when I get to...
By php I generate and save a txt file that contains the data captured from a textfield, but when reading it from an application that I am creating it turns out that it has a blank space of more.
How can I save my txt with the info lines I want...
Help I need to calculate the age, I have the date of birth but I do not find the function, this is what I have
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12"">
<div class="form-group">
<label for="fecha_nacim...
I have a form that updates a record in a database. (Works correctly).
The problem is that when the condition where is not met, it shows correct update, although it is not updated.
How do I do it so that when it does not update, it tell...