Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form id="form1" name="form1" method="post" action="">
- <p>
- <label for="title">title</label>
- <input type="text" name="title" id="title" />
- </p>
- <p>
- <label for="game">game</label>
- <input type="text" name="game" id="game" />
- </p>
- <p>
- <label for="description">description</label>
- <input type="text" name="description" id="description" />
- </p>
- <p>submit
- <input type="submit" name="submit" id="submit" value="Submit">
- </p>
- <?php
- $Con = mysql_connect("localhost","mocha_wiki","muffins");
- if (!$Con)
- {
- die('Could not connect: ' . mysql_error());
- }
- mysql_select_db("mocha_PHP", $Con);
- if(isset($_POST['submit']))
- {
- mysql_query("UPDATE contacts SET Age = 15
- WHERE FirstName = Brandon AND LastName = Johnson");
- echo $_POST[description];
- }
- mysql_close($Con);
- ?>
- </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement