I've looked at it more than 100 times. Somebody sees the error. I'm trying to make an update.
public function modificar_producto($datos) {
$ok = "false";
$sql = "update productos set "
. "codigo_articulo=?,"
. "titulo_p...
I need to enable the sending of mails by form. It is the first time I do it. I am based on this link: link
I installed the mail server test tool to simulate a mail server: link
With this, what I do is not send an email but "falsify" a sh...
I have a loop that runs through an array that comes from a multiple select and stores the results in mysql.
The fact is that there is the option that this select does not exist, so the loop does not make sense. I have tried to enter a conditi...
My system is Ubuntu 14.04.1, with apache 2 with PHP 5.5.9-1ubuntu4.22
Problem: I want to translate my web application made in PHP with Gettext and I can not get it translated. So I created a new project with the minimum necessary to make tran...
Good I am trying to fill two tables of related data bases in Laravel using ajax
one of books
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateLibrosTable extends Migration {
/**
* Run th...
I want to generate random data in my views, specifically I want to go through the results of a query and each one assign a different color, all this in my views of Blade (Laravel) .
Something like this (similar to what I want to do):
$ar...
Greetings, what I need is to keep some data sent from a form in an array that I store in Session de laravel, I'm doing it in the following way:
In the routes.php I have:
Route::bind('evento', function($slug){
return Deportes\Even...
I have a query where it shows the numerical values with thousand separator (1,500) and I have two problems:
When I open the modal window to edit the values it shows me the values with the thousand separator, but if I edit the value of one f...
Knowing that I have 3 tables:
people (id, name, surname)
$factory->define(SIMante\Personas::class, function ($faker) {
return [
'nombres' => $faker->firstName,
'apellidos' => $faker->lastName,
];
});...