View Single Post
Old 03-25-2009, 06:31 PM
BMR777 BMR777 is offline
Join Date: Jan 2011
Posts: 1,122
Gender: Male
Credits: 2,906
BMR777 is on a distinguished road
Default RE: [In Development] Currency for leveling up

PHP Code:
$color "";
$number rand(1,5); // Get random number between 1 and 5

if($number == 1){
$color "redpebbleimage.gif";
else if(
$number == 2){
$color "greenpebbleimage.gif";
else if(... and 
so on 
Just do that to assign a random pebble image and save in the db. :)