Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

156
Views
why php is not sending any message to jquery

so i'm sending a value to php code to update an entry in my sql database, everything is running fine, entry is updating successfully but php not returning any success or failure message to jquery. i've tried both post and ajax method but every time its same. data updated without alerting any message. why should i do ??

$(document).ready(function(){
$("#updateabout").click(function(){
var value = $("#value").val();

            $.post("<?= base_url('user_profile/updatebio'); ?>", {val:value}, function(data){
                alert(data);
            });
        });
    });

here's my php code for update:

 if($this->session->userdata('LoginId')){

                $uid = $this->session->userdata('LoginId');
                $val = $_POST['val'];
  $que = "update dzone_usersignup_details set about_me='$val' where uid='$uid'";
                $run = mysqli_query($conn, $ru)
                if($run){
                    echo "hello";
                }
            }
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Check your console, you must missing something.

Or try return instead of echo in php

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!