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
Post a Comment