note 125688 added to function.zlib-decode

From: Date: Sun, 17 Jan 2021 10:14:44 +0000
Subject: note 125688 added to function.zlib-decode
Groups: php.notes 
Request: Send a blank email to php-notes+get-216172@lists.php.net to get a copy of this message
<!DOCTYPE html> <html> <head> <title>listar</title> <meta charset="utf-8"> </head> <style> #contenedor { width:70%; margin:20px auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); grid-gap: 5px; } .produto { /* width:200px; */ height:210px; background-color:white; border:1px black solid; text-align: center; padding-top: 20px; font-family: Arial; } img { width:200px; height:210px; } </style> <body> <article id="contenedor"> <?php $conexion=mysqli_connect('192.168.2.201','exame','abc123.', 'musica') or die (mysqli_error($conexion)); if($conexion){ session_start(); $datos=""; if (isset($_GET["engadir"])) { echo "<form action='lista.php' method='GET'> <label>Id</label><input type='text' name='id'></br> <label>Arma</label><input type='text' name='Arma'></br> <label>Skin</label><input type='text' name='Skin'></br> <label>Estado</label><input type='text' name='Estado'></br> <label>Precio</label><input type='text' name='Precio'></br> <label>Tipo</label><input type='text' name='Tipo'></br> <button type='submit' name='bot1'>Engadir rexistro</button></br> </form>"; } if (isset($_GET["bot1"])){ $datos=mysqli_query($conexion,"INSERT INTO tema (id, Arma, Skin, Estado, Precio, Tipo) VALUES ('".$_GET["id"]."', '".$_GET["Arma"]."', '".$_GET["Skin"]."', '".$_GET["Estado"]."', '".$_GET["Precio"]."', '".$_GET["Tipo"]."')"); } if (isset($_GET["editar"])) { echo "<form action='lista.php' method='GET'> <label>Id ao cal debemos modificar: </label><input type='text' name='id'></br> <label>Arma: </label><input type='text' name='Arma'></br> <label>Skin: </label><input type='text' name='Skin'></br> <label>Estado: </label><input type='text' name='Estado'></br> <label>Precio: </label><input type='text' name='Precio'></br> <label>Tipo: </label><input type='text' name='Tipo'></br> <button type='submit' name='bot2'>Editar rexistro</button></br> </form>"; } if (isset($_GET["bot2"])){ $datos=mysqli_query($conexion,"UPDATE tema SET Arma = '".$_GET["Arma"]."', Skin = '".$_GET["Skin"]."', Estado = '".$_GET["Estado"]."', Precio = '".$_GET["Precio"]."', Tipo = '".$_GET["Tipo"]."' WHERE id = '".$_GET["id"]."'"); } if (isset($_GET["eliminar"])) { echo " <form action='lista.php' method='GET'> <label>id</label><input type='text' name='id'></br> <button type='submit' name='bot6'>Eliminar rexistro</button></br> </form>"; } if (isset($_GET["bot6"])){ $datos=mysqli_query($conexion,"DELETE FROM tema WHERE id = '".$_GET["id"]."'"); } if (isset($_GET["completo"])) { $datos=mysqli_query($conexion, "SELECT * FROM tema"); } if (isset($_GET["orden_titulo"])) { $datos=mysqli_query($conexion, "SELECT * FROM tema order by Titulo"); } if (isset($_GET["orden_autor"])) { $datos=mysqli_query($conexion, "SELECT * FROM tema order by Autor"); } if (isset($_GET["enviar"])) { $type=$_GET['Autor']; $datos=mysqli_query($conexion, "SELECT * FROM tema where Autor = '$type'"); } if ($datos != FALSE) { while ($fila=mysqli_fetch_array($datos)) { $nomeImg=$fila['Titulo'].$fila['Autor'].".jpg"; echo "<div id='contenedor'> <tr><td><img src='imaxes/",$nomeImg,"'><br>",$fila['Autor']," ",$fila['Titulo']," ",$fila['Año'],"</td></tr></div>"; } } } ?> </article> </body> </html> ---- Server IP: 45.112.84.4 Probable Submitter: 45.91.159.166 (proxied: 77.27.51.181) ---- Manual Page -- http://php.net/manual/en/function.zlib-decode.php Edit -- https://master.php.net/note/edit/125688 Del: integrated -- https://master.php.net/note/delete/125688/integrated Del: useless -- https://master.php.net/note/delete/125688/useless Del: bad code -- https://master.php.net/note/delete/125688/bad+code Del: spam -- https://master.php.net/note/delete/125688/spam Del: non-english -- https://master.php.net/note/delete/125688/non-english Del: in docs -- https://master.php.net/note/delete/125688/in+docs Del: other reasons-- https://master.php.net/note/delete/125688 Reject -- https://master.php.net/note/reject/125688 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#216172) next »