I have a data loop that shows data items from the database, I want to deal with each item, but I What does the first div, for each walk, get the 'id' of the current currency and I want to deal with it, it looks like 'likes' in Facebook when I first click on 'like' a jazzery I run a I hope that I have been successful in describing this problem! Any solution with any language will be appreciated! सादर. The ID should be unique in the HTML file, if you have the same ID With many elements, the browser can only click on the first element with this ID only. Click on the You have to use classes instead: $ .post (..) function and all Become OK: the trends made with this ID, but when I click on the next generation, the post method still sends the first ID (checked by firebug), code:
& lt; Script type = 'text / javascript & gt; Click $ ("like") (function () {$ .post ("done.php", {id: $ ("# id"). Val ()}, function (data) {...}) ;}); & Lt; / Script & gt; & Lt; Body & gt; $ Result = myqsl_query ("select ... to ..."); While ($ fetch = mysql_fetch_array ($ result) {.. echo "
Comments
Post a Comment