- Resizeing Images stored in mysql db
| From: | Nikos Gatsis | Date: | Mon, 16 Feb 2004 12:56:10 +0000 |
| Subject: | - Resizeing Images stored in mysql db | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-32956@lists.php.net to get a copy of this message | ||
Hello list
I store images in a mysql table and use then in a web site.
Is possible to change the size of these images;
Following the code I'm allredy use.
$query="SELECT photoxl FROM books WHERE books_id = '$books_id'";
$result=mysql_db_query($database, $query, $conn) or Die
("...".mysql_error());
list($photoxl)=mysql_fetch_row($result);
$type = $photoxl_type;
if (!empty($photoxl)) {
header("Content-Type: {$type}");
echo $photoxl;
}
Thank you in advance