Hi to all,
The code below shows to upload a content in to the database.
My problem is, i have to create two users, one should login into the page and upload the conntent and the other should login into the page and approve it to display in the site.
So can anyone please reply and post a code for me to dowload and approve it or any other way to do it.
Note:- This is mainly used for news updates.
I appreciate, if anyone gives the solution for this
<html> <body> <?php mysql_connect("localhost", "root", "") or die(mysql_error()); //echo "Connected to MySQL<br />"; mysql_select_db("User_info") or die(mysql_error()); //echo "Connected to Database<br /><br />"; ?> <form action="/forums/form.php" method="post"> Name: <input type="name" name="name" /> Content: <input type="text" name="cont" /> <input type="submit" /> </form> <?php $name= $_POST['name']; $content=$_POST['cont']; mysql_query("INSERT INTO news (Name, Content, Status) VALUES ('$_POST[name]','$_POST[cont]','pd')"); ?> </body> </html>