ilikephp Posted August 26, 2009 Share Posted August 26, 2009 Hello, Is there a way to display daily news automatically on my website using php/SQL, if not how can I do it? for example: everyday, a new event paragraph will replace the other one based on the date, and all the future events will be followed day after day. Thanks.. Quote Link to comment https://forums.phpfreaks.com/topic/171988-daily-events-updated-automatically/ Share on other sites More sharing options...
ram4nd Posted August 26, 2009 Share Posted August 26, 2009 Look tutorials for cron jobs. Quote Link to comment https://forums.phpfreaks.com/topic/171988-daily-events-updated-automatically/#findComment-906865 Share on other sites More sharing options...
Maq Posted August 26, 2009 Share Posted August 26, 2009 Is this via RSS? Or is this content you already have? In which case you can just use a cron or scheduled task (windows). Quote Link to comment https://forums.phpfreaks.com/topic/171988-daily-events-updated-automatically/#findComment-906866 Share on other sites More sharing options...
ignace Posted August 26, 2009 Share Posted August 26, 2009 Take a look at a post made by pfmabismad http://www.phpfreaks.com/forums/index.php/topic,266252.msg1255800.html#msg1255800 Quote Link to comment https://forums.phpfreaks.com/topic/171988-daily-events-updated-automatically/#findComment-906868 Share on other sites More sharing options...
ilikephp Posted August 28, 2009 Author Share Posted August 28, 2009 thanks guys for your help! I read the tutorials about the cron job and I am able to figure it using the cPanel, but the problem is: all the daily news that I have, where should I put them? and how they will be displayed based on their order? thanks... Quote Link to comment https://forums.phpfreaks.com/topic/171988-daily-events-updated-automatically/#findComment-908561 Share on other sites More sharing options...
Maq Posted August 28, 2009 Share Posted August 28, 2009 all the daily news that I have, where should I put them? What do you mean? Maybe a database? and how they will be displayed based on their order? However you want. Sorry for such vague answers, but I think you need to be a little more specific and provide more information. Quote Link to comment https://forums.phpfreaks.com/topic/171988-daily-events-updated-automatically/#findComment-908579 Share on other sites More sharing options...
ilikephp Posted August 28, 2009 Author Share Posted August 28, 2009 I have around 300 quotes, and I need each day 1 quote to be displayed automatically. I am facing the problem about how can I do it using php or MySql. Quote Link to comment https://forums.phpfreaks.com/topic/171988-daily-events-updated-automatically/#findComment-908588 Share on other sites More sharing options...
ignace Posted August 29, 2009 Share Posted August 29, 2009 I have around 300 quotes, and I need each day 1 quote to be displayed automatically. I am facing the problem about how can I do it using php or MySql. Do you have these quotes on file? May it only show one same quote during the whole day or show random quotes on each refresh? Random quotes: $lines = file('path/to/quotes/file'); print $lines[array_rand($lines)]; Quote Link to comment https://forums.phpfreaks.com/topic/171988-daily-events-updated-automatically/#findComment-908840 Share on other sites More sharing options...
ilikephp Posted August 29, 2009 Author Share Posted August 29, 2009 I want them to be displayed on each day. I have all the quotes in ms word. How can I put them in database? Is there a script to display them according to the date (everyday) thanks... Quote Link to comment https://forums.phpfreaks.com/topic/171988-daily-events-updated-automatically/#findComment-908889 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.