I use the following code to send values to a server (PHP script) to take action accordingly.
JS code:
$.ajax({
type: "POST",
url: "/application/helpers/fb_login_assist.php",
data: {fbname: name,
fbid: id,
fbemail: email,
fbgender: gender,
fbimageURL: imageURL},
success: function(data){
console.log("Data sent to server");
confirm("You have successfully logged in with FB");
window.location.reload();
}
});
It worked completely fine before I moved to CodeIgniter. However I'm confused no how to save the details in DB or fetch data from DB in CodeIgniter.
P.S. I'm new to CodeIgniter.