Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- mysql_connect("localhost", "xxxxxxxxxxxx", "xxxxxxxxx") or die("Não foi possível conectar ao Servidor.");
- mysql_select_db("xxxxxxxxxxxxx") or die("Não foi possível selecionar o Banco de Dados.");
- $id = $_GET["id"];
- $sql = mysql_query("SELECT * FROM imagens2 WHERE id = $id");
- $l = mysql_fetch_assoc($sql);
- header("Content-type: image/jpeg");
- $im = imagecreatefromstring($l["Filedata"]);
- $out = imagejpeg($im);
- print($out);
- imagedestroy($im);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment