Montiero Posted January 22, 2009 Share Posted January 22, 2009 I'm currently trying to modify a blog script and I've hit a snag. The script's intentionally basic so it doesn't use SQL, it writes everything directly to PHP/HTML files. I want newest entries to appear at the top of the page. I know the easiest way to do it with the way I'm writing is to place an HTML comment on the page the entry's to be written to, use PHP to find the tag in the page and replace it with the new story and the existing comment tag at the top. The problem is I have no idea how to do it. Can anyone help? Link to comment https://forums.phpfreaks.com/topic/141868-blog-script-problem/ Share on other sites More sharing options...
trq Posted January 22, 2009 Share Posted January 22, 2009 If your looking for someone to write the code for you your request needs to go in our freelance board. This board is for helping people fix problems in there own code. Link to comment https://forums.phpfreaks.com/topic/141868-blog-script-problem/#findComment-742802 Share on other sites More sharing options...
Montiero Posted January 22, 2009 Author Share Posted January 22, 2009 Sorry about that. Thanks. Link to comment https://forums.phpfreaks.com/topic/141868-blog-script-problem/#findComment-742811 Share on other sites More sharing options...
Montiero Posted January 22, 2009 Author Share Posted January 22, 2009 On viewing the Freelance board, it seems to be for complete jobs. I'm essentially looking for two pieces of code - the code to find the HTML comment and the code to rewrite the HTML comment. I've got the rest down. Link to comment https://forums.phpfreaks.com/topic/141868-blog-script-problem/#findComment-742812 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.