问题描述
大家好,
这里我有相同的图像存储在数据库中,具有不同的ID'并且还存在一些其他图像。
这里我必须随机显示横幅我已经拍摄了imageid并随机显示。由于存储了相同的图像,我需要等待很长时间(刷新页面)才能更改图像。
这里的问题是如果我在db中存储了相同的图像很多我必须在每次刷新页面时显示独特的图像。(如果我刷新页面而不应显示以前显示的图像,则应显示新图像。)
请帮我一些一个解决这个问题
提前致谢
Ram
Hi to All,
Here i have the same image stored in the db with different id''s and also exist some other images.
Here i have to display banner randomly i have taken imageid''s and displayed randomly. Because of same image stored many time i have to wait long time(refresh the page) for change of image.
Here the issue is though if i have same image stored in the db many times i have to display unique image on every refresh of the page.( means previously displayed image should not display if i refresh the page instead fresh image should appear.)
please help me some one in solving this
Thanks in Advance
Ram
这篇关于使用PHP随机显示横幅?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!