Server IP : 184.154.167.98 / Your IP : 13.59.1.58 Web Server : Apache System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : puertode ( 1767) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/puertode/public_html/libreria/ |
Upload File : |
<?php require_once 'connect.php'; $q_book = $conn->query("SELECT * FROM `book` WHERE `book_id` = '$_REQUEST[book_id]'") or die(mysqli_error()); $f_book = $q_book->fetch_array(); ?> <div class = "col-lg-3"></div> <div class = "col-lg-6"> <form method = "POST" action = "edit_book_query.php?book_id=<?php echo $f_book['book_id']?>" enctype = "multipart/form-data"> <div class = "form-group"> <label>Titulo del libro:</label> <input type = "text" value = "<?php echo $f_book['book_title']?>" name = "book_title" required = "required" class = "form-control" /> </div> <div class = "form-group"> <label>Descripcion:</label> <input type = "text" value = "<?php echo $f_book['book_description']?>" name = "book_desc" class = "form-control" /> </div> <div class = "form-group"> <label>Categoria de libro:</label> <input type = "text" name = "book_category" value = "<?php echo $f_book['book_category']?>" class = "form-control" required = "required"/> </div> <div class = "form-group"> <label>Autor:</label> <input type = "text" name = "book_author" value = "<?php echo $f_book['book_author']?>" class = "form-control" required = "required" /> </div> <div class = "form-group"> <label>Fecha de PublicaciĆ³n:</label> <input type = "date" name = "date_publish" value = "<?php echo $f_book['date_publish']?>" required = "required" class = "form-control" /> </div> <div class = "form-group"> <label>Cantidad</label> <input type = "number" min = "0" value = "<?php echo $f_book['qty']?>" name = "qty" required = "required" class = "form-control" /> </div> <div class = "form-group"> <button name = "edit_book" class = "btn btn-warning"><span class = "glyphicon glyphicon-edit"></span> Guardar Cambios</button> </div> </form> </div>