RE: [PHP-DB] storing images in database
| From: | Gareth Heyes | Date: | Wed, 26 Jan 2005 13:30:45 +0000 |
| Subject: | RE: [PHP-DB] storing images in database | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-38358@lists.php.net to get a copy of this message | ||
This is a really bad example, anybody can inject your query with malicious sql commands. Never trust user supplied data.if(isset($_GET['id'])) { $id=$_GET['id']; $query = "select bin_data, filetype from binary_data where id=$id";