hi friends,
again a problem
I have a mysql table name tbl_admin fields are below
id(int), image1(text), image2 (text) , image3 (text)
now i want to show these pics, i use randomly function to display them
$query=select * from tbl_admin where id=5;
$result=mysql_query($query);
$row=mysql_fetch_array($result)
now for show i use
<img src="<? rand($row['image1'],$row['image2'],$row['image3'])">
Problem occur when image1 or image2 or image3 is blank
than sometime image show blank,,, but i don't want to show up blank, if there is only 2 images then show only 2 images randomly, if there is only one show only one
Thanks