hy im using this script but unf cant find the bug related to update the values, its keep telling succesuful update but dsnt update in db...Click Here
bolfescu 0
Junior Poster in Training
Recommended Answers
Jump to PostYou have to debug ajax calls which is easier with tools like Firebug. But anyway, I think you should check the UPDATE query from the
updateMemberAjx()
function. You can try to display the query instead of the success message by assigning the query to a variable in each case …
Jump to PostFiddler is also a great tool for debugging ajax calls.
Jump to PostYou have to add echo statement to every case instance in the function, something like:
function updateMemberAjx() { $sVal = $GLOBALS['MySQL']->escape($_POST['value']); $iId = (int)$_POST['id']; if ($iId && $sVal !== FALSE) { switch ($_POST['columnName']) { case 'first_name': $GLOBALS['MySQL']->res("UPDATE `pd_profiles` SET `first_name`='{$sVal}' WHERE `id`='{$iId}'"); $temp = "UPDATE `pd_profiles` SET …
All 10 Replies
broj1 356
Humble servant Featured Poster
DaveAmour 160
Mmmmmm beer Featured Poster
Szabi Zsoldos
commented:
fiddler is the best for me also :) +5
bolfescu 0
Junior Poster in Training
broj1 356
Humble servant Featured Poster
bolfescu 0
Junior Poster in Training
bolfescu 0
Junior Poster in Training
broj1 356
Humble servant Featured Poster
bolfescu 0
Junior Poster in Training
broj1 356
Humble servant Featured Poster
bolfescu 0
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.