Created
November 1, 2019 18:43
-
-
Save mumin91/8695c56d534d5e6246c53c41a6a47af9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $servername="localhost"; | |
| $username="root"; | |
| $password=""; | |
| $dbname="raha"; | |
| $conn=mysqli_connect($servername,$username,$password,$dbname); | |
| if($conn) | |
| { | |
| if(isset($_POST['submit'])) | |
| { | |
| $fullname=$_POST['fullname']; | |
| $username=$_POST['usrname']; | |
| $email=$_POST['email']; | |
| $password=$_POST['password']; | |
| $sql= "insert into roy(fullname ,username,email,password) | |
| values('$fullname',' $username','$email','$password')"; | |
| $result=mysqli_query($conn,$sql); | |
| if($result) | |
| { | |
| echo "successfully"; | |
| } | |
| else | |
| { | |
| echo "something went wrong"; | |
| } | |
| } | |
| } | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment