Welcome Guest, Not a member yet? Register   Sign In
Get Mysql insert_id in java
#2

ok all just to let you know i found a solution

i added these two lines to my controller function

Code:
$this->output->set_content_type('application/json');
    $this->output->set_output(json_encode($data))

and changed my java like so

Code:
$('#statusupdate').click(function(){  // when user click no move to next profile and save choice to db
var val_post = $("#msgstatus").val();
              
  
                 $.get("http://www.leap-it.be/tangoo2/auth_public/set_post/"+ val_post,
     function(data){
                
       alert(data.postid);
            });


if my coding looks bad let me know

thx
Reply


Messages In This Thread
Get Mysql insert_id in java - by Marcel - 02-19-2015, 06:37 AM
RE: Get Mysql insert_id in java - by Marcel - 02-19-2015, 07:04 AM
RE: Get Mysql insert_id in java - by CroNiX - 02-19-2015, 09:47 AM
RE: Get Mysql insert_id in java - by Narf - 02-19-2015, 10:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB