have a table in mysql and a list of the order you want the images in. insert a 1 or a zero on the row you want or dont want displaying and upgrade it everytime. Or use another variable to decide, the date or something.
Have a look at these two threads. They should point you in generally the right direction. You just need to adapt the code to show random images instead of ads. Ad Rotator Need PHP Add Rotator Script! Unless I've completely misunderstood you, and you want to actually rotate an image by some angle so that it's another way up? You'll probably want to use ImageMagick for this. Cheers, Cryo.
oh, sorry, my bad English! I actually meant turning an image, like around its center. I have an image and want to turn it with a certain number of degrees clockwise or counterclockwise. Sorry for the misunderstanding! Thanks for the replies.
Try phpThumb. I use it on most of my sites and can verify it works great and does just about anything you could want...
Try the imagerotate function in the GD library: http://in2.php.net/manual/en/function.imagerotate.php $filename = 'hooba.jpg'; $angle = '90'; // in degrees $img = imagcreatefromjpeg($filename); $rotimg = imagerotate($img,$angle,0); header('Content-type: image/jpeg'); // set the correct Content-type for output imagejpeg($rotimg); // send output to browser imagedestroy($img); imagedestroy($rotimg); PHP: The last zero in the imagerotate call means that it should not ignore the transparent colors. If you use a non-zero value there, the transparent colors will be ignored. Thomas