Hi! I wanted to know how I could create a page where people can post and display it for others to comment on using PHP. Sort of like OpenStudy? Anyone know how I can do this?
So you want a forum? There are a few good open source forums you can use. First thing, how much do you want to pay? Do you want it to be free or are you looking at having your own domain name(www.MyName.com). Anyways if you want to pay about 6 to 15 dollars a month you can purchase webhosting from http://www.godaddy.com and then install the simple machine app or PHPBB3 app and you will be on your way. If you just want something where you can make post and have people comment, you could create a wordpress site. Anyways, need a little bit more information.
No, no. Not a forum something like this site. Basically so people can post funny things and people can comment on them.
Try this one <?php // This line grabs the posted info $your_comment=$_POST['comment']; // Next comes the MySQL bit // connect to MySQL mysql_connect($domain,$user,$password); @mysql_select_db($database) or die( "Unable to select database"); // Write to MySQL $query = "INSERT INTO yourtable VALUES ('','$comment')"; mysql_query($query) or die( "Unable to write to table"); mysql_close(); ?>
you can go here www.w3schools.com they tutorials.
Join our real-time social learning platform and learn together with your friends!