javascript - I can't change my database with ajax and a button -




i'm new ajax , jquery, might simple problem. i'd update database clicking on button within browser, using codeigniter framework.

my javascript looks this:

function endonboard(){ $.ajax({ url: "http://localhost:8888/users/onboard", success: function(data) {    } }); } 

my html looks button this:

<button onclick="endonboard();">end</button> 

and new php page onboard.php this:

<?php  $query_onboard = $this->db->query("update users set firstsignup = 42  user_id=". $this->user_id);  ?> 





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -