Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2015
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. success:function(data)
  2.  
  3. function SetTheAmount_man()
  4. { //Get
  5. var member_id = $('#mem_un_id').val();
  6. // alert(member_id);
  7.  
  8. $.ajax({
  9. url:"<?php echo
  10. base_url();?>demo_insert.php",
  11. data: {member_id:member_id},
  12. type: "POST",
  13. success:function(data){
  14. //alert(data);
  15. // alert(member_id);
  16. if (data == 'success')
  17. {
  18. alert("123");
  19. }
  20. else
  21. {
  22. alert("456");
  23. }
  24. //window.open('http://www.google.com');
  25.  
  26. //alert(data);
  27. // $("#secheme_interest_value").html(data);
  28. }
  29. });
  30.  
  31. }
  32.  
  33. if(isset($_POST['member_id']))
  34. {
  35. $mem_un_id=$_POST['member_id'];
  36. $sql_in= mysql_query("select mem_un_id,deleted from phppos_customers where mem_un_id='".$_POST['member_id']."' and deleted='0'");
  37. //$row = mysql_affected_rows($sql_in);
  38. $row=mysql_fetch_array($sql_in);
  39.  
  40. if($row['mem_un_id']!=''){
  41. echo "success";
  42. }else{
  43. echo "error";
  44. }
  45.  
  46. //echo $row['mem_un_id'];
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement