Framework7 not working send mysql data?

Is it possible for me to use phpmyadmin for compiling data storage using framework7?

I installed framework7 on my localhost on htdoc and tried to make a registration form and send data using ajax / app.reques but that can’t be done, the data sent can’t be saved to the database.

What do I have to do to make a registration application?

See my code here!

my-app.js

$$('.register .register-button').on('click', function () {

var email = $$("#email").val();
var pass = $$("#pass").val();
var cekpass = $$("#cekpass").val();

if ($.trim(email) == “”)
{
$$("#email").focus();
}
else if ($.trim(pass) == “”)
{
$$("#pass").focus();
}
else if ($.trim(cekpass) == “”)
{
$$("#cekpass").focus();
}
else
{
app.request({
url: “./includes/signup.php”,
method: ‘POST’,
dataType: ‘json’,
cache: false,
data: {email:email, pass:pass, cekpass:cekpass},
success: function (data) {
if (data) {
console.log(data);
} else {
console.log(“NOT DATA”);
}
},
error: function (xhr) {
console.log(xhr);
},
statusCode: {
404: function (status) {
console.log(status);
}
}
});
}
});

signup.php

header("Content-Type: application/json; charset=UTF-8");
header("Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With");

//session_start();
require ("../config.php");
require ("../fungsi.php");

$email			= $_POST['email'];
$pass 			= $_POST['pass'];
$cekpass 		= $_POST['cekpass'];
$take_pass 		= md5(nosql($cekpass));

/* query */
mysqli_query ($hwd_db, "INSERT INTO member ( email, pass, create) VALUES ( '".$email."', '".$pass."', NOW() )");

echo 'ok';

/*$result = array(
	"email" => $email,
	"pass" => $take_pass,
);
$sdata[] = $result;

echo json_encode($sdata, true);*/

[SOLVED]

The code above turned out to work, I found a problem with my database field name, I used the “create” field name in my phpmyadmin, and it didn’t work so I replaced it using “created”.

THANKS :grinning: