Hi This is ScorpionZ
I have created my Webpage in Which i want to show a randomly generated banners...
The Scenario is simple
I have a banners name stored in Database.. Now I want to call them at Particular place with
selected Id's, Like there are 1 to 100 banners name and i want to call only 1, 5, 9,10,15,20
like this means only selected and randomly showed
Now here is the little piece of Code for that particular are where i want to show my Banners
<?php
$sql_view_flag_banners = "select * from flags_adds";
$result_view_flag_banners = mysql_query($sql_view_flag_banners);
while($rs_view_flag_banners=mysql_fetch_array($result_view_flag_banners))
{
$flg_id = $rs_view_flag_banners["flags_adds_id"];
$flg_browse_nam = $rs_view_flag_banners["flag_browse_name"];
}
?>
<!-- The above is the PHP CODE and below is an HTML -->
<td bgcolor="#EFEFE9">
<div align="center"><img src="./uploaded_top_banner/<?php echo $prod_up_img; ?>" width="150px" height="100px" />
</div>
</td>
This code is only showing only 1 display but i want to show all randomly generated, even though i take a while loop to hold all of them.
Now Any Advancement in this code will be highly appreciated
I will be Thankful
Thanks and Regards
ScorpionZ