Jump to content

Archived

This topic is now archived and is closed to further replies.

stowell

Help please...

Recommended Posts

Hi Guys,

Can someone help me? I have a table name messages column "msg_id,msg_name and msg_description this table have 72 data, I want this data to view one at the time ramdomly every 5 hours in a web page.

Thanks

Share this post


Link to post
Share on other sites
$query = "SELECT msg_id,msg_name, msg_description  FROM `table_name` ORDER BY RAND() LIMIT 0,1";


thats a query that will select a record at random but that 5 minutes u will need to refresh the page as php is server side so can't time and update dynamicaly or a less in a iframe or using AJAX

Regards
Liam

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.