topical media & game development
basic-php-07-modifyimage-rev01.php / php
<?php
//connect to the database
link)
or die (mysql_error());
//make variables available
_POST['id'];
if (isset(bw = bw = '';
}
_POST['action'];
//get info on the pic we want
id'")
or die(mysql_error());
getpic);
extract(image_filename = "images/" . width, type, image_filename);
image_filename");
if (image, IMG_FILTER_GRAYSCALE);
}
if (image);
}
if (image, url = "location:showimage.php?id=". url);
}
?>
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.