ok...
lets say you have this as your db schema:
CREATE TABLE card_images (
card_imageid tinyint(4) NOT NULL auto_increment,
images varchar(250) NOT NULL default '',
PRIMARY KEY (card_imageid)
) TYPE=MyISAM;
the 'images' field will house the data for one to five images
to get the images out you would select the images field from this table and unserialize the data.
serialize() takes an array and kicks it out into a string that can be later rebuilt as an array, so you can store an array of values in one field of a database, thus making you capable of storing an unknown number of elements.
example:
$get_images = "select images from card_images where card_imageid = '7'";
$do_get_images = mysql_query($get_images);
$row=mysql_fetch_array($do_get_images);
$image_array = unserialize($row[images]);
// $image_array now looks like this:
$image_array[0] = "/images/imageone.gif";
$image_array[1] = "/images/imagetwo.gif";
$image_array[2] = "/images/imagethree.gif";
$image_array[3] = "/images/imagefour.gif";
$image_array[4] = "/images/imagefive.gif";
make sense?