Yohohohohohooho | Sanrei Aya
Sanrei Aya


Server : LiteSpeed
System : Linux barito.iixcp.rumahweb.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64
User : elvh3918 ( 1528)
PHP Version : 8.2.31
Disable Function : mail
Directory :  /home/elvh3918/www/api-flutter-crud/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/elvh3918/www/api-flutter-crud/insert_record.php
<?php

    include("dbconnection.php");
    $con=dbconnection();

    if(isset($_POST["name"])) {
        $name=$_POST["name"];
    }
    else return;

    if(isset($_POST["email"])) {
        $email=$_POST["email"];
    }
    else return;

    if(isset($_POST["password"])) {
        $password=$_POST["password"];
    }
    else return;

    $query="INSERT INTO user_table (uname, uemail, upassword) VALUES ('$name', '$email', '$password')";
    $exe=mysqli_query($con, $query);

    $arr=[];
    if($exe) {
        $arr['success']="true";
    } else {
        $arr['success']="false";
    }

    print(json_encode($arr));

?>

Yohohohohohooho | Sanrei Aya