Makeshift67 Posted September 13, 2009 Share Posted September 13, 2009 On my website, i currently use php to write comments to a file, and use include to apply them to the comment page.. my friend told me it would be a lot smarter to do it though a database, but I have no idea how to do it/where to start. If someone could help me out/give me a site that can walk me through or has a downloadable script i can use.. the code would need to be able to make each table after the user posts the comment, and i want the comments to display newest to oldest.. thanks. Quote Link to comment https://forums.phpfreaks.com/topic/174068-comments-db/ Share on other sites More sharing options...
trq Posted September 13, 2009 Share Posted September 13, 2009 Theres a link in my signature to a free book (hudzilla) about learning php. this book contains an entire chapter on working with databases and php. Quote Link to comment https://forums.phpfreaks.com/topic/174068-comments-db/#findComment-917583 Share on other sites More sharing options...
mellis95 Posted September 14, 2009 Share Posted September 14, 2009 I highly recommend "Web Database Applications with PHP and MySQL" from O'Reilly. It is very thorough for getting started. Quote Link to comment https://forums.phpfreaks.com/topic/174068-comments-db/#findComment-917924 Share on other sites More sharing options...
Makeshift67 Posted September 14, 2009 Author Share Posted September 14, 2009 thorpe, thank you for the link, but I couldn't make heads or tales around that site.. mellis, thank you for that, I will definitely look into it, but I found exactly what i was looking for more or less. http://css-tricks.com/php-for-beginners-building-your-first-simple-cms/ Quote Link to comment https://forums.phpfreaks.com/topic/174068-comments-db/#findComment-918550 Share on other sites More sharing options...
trq Posted September 14, 2009 Share Posted September 14, 2009 thorpe, thank you for the link, but I couldn't make heads or tales around that site.. Couldn't make heads or tales? Its a book, you read it like a book, start at the start and finish at the end. Quote Link to comment https://forums.phpfreaks.com/topic/174068-comments-db/#findComment-918572 Share on other sites More sharing options...
Makeshift67 Posted September 15, 2009 Author Share Posted September 15, 2009 oh, i was trying to skip to find what i was looking for. lol.. Quote Link to comment https://forums.phpfreaks.com/topic/174068-comments-db/#findComment-918771 Share on other sites More sharing options...
onedumbcoder Posted September 15, 2009 Share Posted September 15, 2009 dont worry about it Makeshift67, we all start out look dumb TO PEOPLE WHO HAVE BEEN DOING IT FOR YEARS. so don't take offense. here is what you need, not a book: http://www.tizag.com/mysqlTutorial/ Quote Link to comment https://forums.phpfreaks.com/topic/174068-comments-db/#findComment-918785 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.