basic-php-07-showimage-rev01.php / php
<?php //connect to the database link) or die (mysql_error()); //make variables available _REQUEST['id']; //get info on the pic we want id'") or die(mysql_error()); getpic); extract(image_filename = "images/" . width, type, image_filename); ?> <html> <head> <title>Here is your pic!</title> </head> <body> <h1>So how does it feel to be famous?</h1><br><br> <p>Here is the picture you just uploaded to our servers:</p> <img src="<?php echo <?php echo attr; ?> > <strong><?php echo </strong><br> It is <?php echo width; ?> pixels wide a nd <?php echo <br> It was uploaded on <?php echo image_date; ?> by <?php echo </body> </html>
(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.