php - What is the best way to add a reply system on a message board im programming? -


i coding board, quite similar chan @ point in it's life wont end such. anyways have basic system working boxes top, type in posts down below. display information (it inserted mysql table) perform mysql query pull out information , mysql_fetch_assoc, goes while loop parameters , put in want loop section follows.

$get_posts = mysql_query("select `title`, `content`, `time`, `id`, `user` `general - off topic` order time desc"); while($get_posts_thing = mysql_fetch_assoc($get_posts)) { echo $get_posts_thing['title']; echo $get_posts_thing['content']; } 

thats looks it's in div styling. anyways want make reply system click reply button , text box appears , type in reply , click post. want post appear under post being replied to, styled in div. since it's in while loop cant individually pick things out. suggestions? , sorry first post , first real php project don't know things.

inside loop, have <button onclick="reply(this);>. in javascript, define reply function take button argument, , work there put in textbox etc.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -