Category : updating

After creating my posts, I tried to submit a post, but I discovered that the post was not updating into the database, below is index.blade.php @extends(‘layouts.app’) @section(‘content’) <div class="flex justify-center"> <div class="w-8/12 bg-white p-6 rounded-lg"> <form action="{{ route(‘posts’) }}" method="post" class="mb-4"> @csrf <div class="mb-4"> <label for="body" class="sr-only">Body</label> <textarea name="body" id="body" cols="30" rows="4" class="by-gray-100 border-2 w-full ..

Read more

I make an update with a php code like this. <?php $db = new PDO(‘mysql:localhost;host=3306;dbname=biblioteca;charset=utf8mb4′,’root’, ”); try { $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $sql = "update libro AS lib LEFT JOIN ejemplar AS eje ON eje.relalibro = lib.`idlibro` set eje.relalibro =’$_REQUEST[relalibro]’, eje.edicion =’$_REQUEST[edicion]’, eje.isbm =’$_REQUEST[isbm]’, eje.fechapublicacion =’$_REQUEST[fechapublicacion]’, eje.relaestadolibro =’$_REQUEST[relaestadolibro]’ where idejemplar =$_REQUEST[idejemplar];"; $db->exec($sql); echo"El registro se actualizado con ..

Read more

I use vBulletin forum software (the old 3.x version) its just my preferred forum software. Although vBulletin 3 has been updated to support at least PHP 7.1, a lot of products that were developed for it are horribly outdated. I am trying to learn how to upgrade theses products, I have a little PHP knowledge ..

Read more