插入数据后不显示成功消息。 单击“按钮寄存器”后,即使数据已加载到数据库中,也会提示超时消息。
下面是我的proses_api.php
LocalSystem
这是register.page.ts
<?php
if($postjson[aksi]=="proses_register"){
$password = md5($postjson['password']);
$insert = mysqli_query($mysqli, "INSERT INTO tb_users SET
your_name = '$postjson[your_name]',
gender = '$postjson[gender]',
email_address = '$postjson[email_address]',
password = '$password',
created_at = '$today'
");
if($insert){
$result = json_encode(array('success'=>true, 'msg'=>'Pendaftaran Berjaya'));
}else{
$result = json_encode(array('success'=>false, 'msg'=>'Pendaftaran Gagal'));
}
echo $result;
}
?>