Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include "../koneksi.php";
- $fullname = $_POST['fullname'];
- $username = $_POST['username'];
- $password = $_POST['password'];
- $sql ="INSERT INTO user VALUES (null,'$fullname','$username','$password')";
- $query=mysql_query($sql);
- $result = mysql_num_rows($query);
- $hasil=array();
- if($result==1){
- $hasil['status']='success';
- }else{
- $hasil['status']='gagal';
- }
- $data = "{result:".json_encode($hasil)."}";
- echo $data;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement