Okay I have 4 variables
$p1
$p2
$p3
$p4
They are populated out of a sql query and will either hold the value of a file name or be null.
How do I put the none null ones into an array so I can then select 2 (if there are 2 or more file names in the array or 1 if there is 1, or none if they are all null) randomly from that array (cannot select the same one twice) for display on a page.
help me ! it would be greatly appreciated, im a bit of a newbie.