Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- mysql_connect("localhost","root","") or die("not connected");
- mysql_select_db("try") or die("no db found");
- if(isset($_POST['submit'])){
- $username = $_POST('username');
- $Password = $_POST('Password');
- $query="insert into login(username,Password) values('$username','$Password')";
- if(mysql_query($query)){
- echo "Data is inserted successfully!";
- }
- }
- ?>
- I have encounter few problems and now is the best one as it produce blank page when I click submit button, can you tell me where I could possibly go wrong?
- $query="insert into login(username,Password) values('$username','$Password');"
- $query="insert into login(username,Password) values('$username','$Password')";
Add Comment
Please, Sign In to add comment