Painted one more doubt ...
I can loop in $ _SESSION, type:
I have this code below, looping on all the images registered inside the banner table and picking up all the images registered in the image field.
<?php
$codigo = $_POST['codigo'];
$imagem = $_POST['imagem'];
$query = mysql_query("SELECT * FROM banner") or die(mysql_error());
while($res = mysql_fetch_array($query)){
?>
<label><img width="100" height="auto" src="../img_banner/<?php echo $res['imagem'];?>" title="<?php echo $res['imagem'];?>"/></label><br /><br />
<?php
}
?>
My question is if I can do the same thing with $ _SESSION, type a session with the banner name and within that session I register the amount of images you want, and pull those images through a loop.
If you have how could friends give me a light on how to run the code?