问题 I've got the code below to pull hex values from a database and create an image of that colour. There's over a thousand values, so it's looping to create an image for them all. It seems to work fine except it just keeps overwriting the first image (0.jpg) instead of creating new ones 0.jpg, 1.jpg 2.jpg etc. Any idea where I'm going wrong? Oh yeah, I'm converting the hex to rgb in there too, that works fine. <?php require ('connect.php'); $sql = mysql_query("SELECT * FROM hex") or die(mysql