Thanks man. I have set up a mysql database but I have some trouble with what code I should use.I got this working but I'm not sure if it's the right way to do it:
<?php$input = $_GET['img'];$con = mysql_connect('stuff','stuff','stuff');if (!$con) { die('Could not connect: ' . mysql_error()); }mysql_select_db('stuff', $con);$result = mysql_query("SELECT img_name,width,height FROM images WHERE img_id='$input'");$output = mysql_fetch_array($result);echo '<img src="images/' . $output['img_name'] . '" width="' . $output['width'] . '" height="' . $output['height'] . '" alt="" />';mysql_close($con);?>
Also, I want it to write 'Image not found' if the '?img=' is wrong or something, but I don't know how. Any suggestions?And is there any security things I should know or do? Can the '?img=something' contain underscores , dots etc. ?Thanks again for any help...