| | |
Code To Display Recent Blog Posts on Static Website
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
Hello,
I'm looking for some code that will recognize my recent blog posts (say 6 most recent posts) and display them on the homepage of my static website. The homepage would show a few lines from the blog with link to the post.
Can someone help? The server is Linux (with mysql, php).
Thank you!
Carl
I'm looking for some code that will recognize my recent blog posts (say 6 most recent posts) and display them on the homepage of my static website. The homepage would show a few lines from the blog with link to the post.
Can someone help? The server is Linux (with mysql, php).
Thank you!
Carl
I know this can be achieved with PHP scripting. To do that your homepage needs to connect to your blog's MySQL database and extract the data from the table containing the latest blog posts.
But I'm afraid this is not the right forum. You might consider moving this thread to the PHP section. And to do that, click on the link, Flag Bad Post and that will take you to another page containing a web form. In the form politely ask the moderators to move your thread to the PHP Forum and give reason for your request. Your reason will likely be that you need proper attention to your thread. I believe that's the place you'll likely get quicker and more insightful response from knowledgeable PHP coders.
Please, do not cross-post (posting the same thread in another forum section), as that might seem tantamount to spamming the forum. The ideal thing is to use the Flag Bad Post option.
But I'm afraid this is not the right forum. You might consider moving this thread to the PHP section. And to do that, click on the link, Flag Bad Post and that will take you to another page containing a web form. In the form politely ask the moderators to move your thread to the PHP Forum and give reason for your request. Your reason will likely be that you need proper attention to your thread. I believe that's the place you'll likely get quicker and more insightful response from knowledgeable PHP coders.
Please, do not cross-post (posting the same thread in another forum section), as that might seem tantamount to spamming the forum. The ideal thing is to use the Flag Bad Post option.
![]() |
Other Threads in the PHP Forum
- Previous Thread: can anybody help me out
- Next Thread: trouble with script registering data
| Thread Tools | Search this Thread |
.htaccess ajax alerts apache api array autocomplete beginner binary broken cakephp checkbox class cms code convert cron curl database date display dynamic echo email emptydisplayvalue error errors explodefunction file files folder form forms function functions google hack href htaccess html htmlspecialchars image include insert integration ip java javascript joomla keywords limit link login loop mail menu methods mlm multiple mysql network object oop paypal pdf php problem query radio random recursion recursive redirect regex remote script search securephp server sessions shot sms soap source space sql subscription syntax system table tutorial update upload url validator variable video web xml youtube





