Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // mysql
- id INT 11 auto_increment
- jmeno VARCHAR 255
- datum DATETIME
- // index.php
- <form name="input" action="script.php" method="get">
- <input type="text" name="jmeno">
- </form>
- // script.php
- <?PHP
- $jmeno = $_GET["jmeno"];
- $pripojeni = mysql_connect("localhost","root","lamalama","databases");
- $akce = "INSERT INTO test (jmeno) VALUES ($jmeno)";
- mysql_query($pripojeni,$akce)
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement