Fenhopi Posted May 2, 2010 Share Posted May 2, 2010 Hi, I've written a code where I write a title and a message, hit submit and it gets added to my mysql database. My next page then retrieves it from the database and is supposed to put each post (title+message) in its own separate table where it just adds to the rest of the posts every time is submit something. However I can't figure out how to post each title+message separately, they just post with a line of titles, followed by a line of messages. Also, I can not figure out how to add posts to the existing posts without making a big mess. Help would be highly appreciated. Tips, hints, and maybe some example code? Thank you. Quote Link to comment https://forums.phpfreaks.com/topic/200491-retrieving-data-from-mysql-table-and-inserting-it-in-a-news-feed/ Share on other sites More sharing options...
Muddy_Funster Posted May 3, 2010 Share Posted May 3, 2010 What database are you using? What's your table and fields named as? When you say that each record should go to it's own table, are you reffering to an html table on the page are are you making a table in the database for each post once it has been created (unlikely I know but better to clear it up just now)? If it's just for an html table is there a reason why you need a new table for each? Sorry to answer a question with a bunch of other ones, but if you let us know this we can help much more efectivly. Quote Link to comment https://forums.phpfreaks.com/topic/200491-retrieving-data-from-mysql-table-and-inserting-it-in-a-news-feed/#findComment-1052323 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.