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

145
Views
por qué php no envía ningún mensaje a jquery

así que estoy enviando un valor al código php para actualizar una entrada en mi base de datos sql, todo funciona bien, la entrada se actualiza correctamente pero php no devuelve ningún mensaje de éxito o falla a jquery. Probé tanto el método de publicación como el de ajax, pero siempre es lo mismo. datos actualizados sin alertar ningún mensaje. Qué debería hacer ??

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

aquí está mi código php para la actualización:

 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

Revisa tu consola, te debe faltar algo.

O intente regresar en lugar de hacer eco en 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!