re-fetch request in php and javascript
<p>here it goes;</p>

<pre><code>echo "&lt;a href='#' class='thumb'&gt;&lt;img class='thumb-img' value = ".$row-&gt;aid." onclick='getVote(".$row-&gt;aid.", \"".$row-&gt;atitle."\")' src='images/roadies/th".$row-&gt;aid.".jpg' /&gt; &lt;/a&gt;";
</code></pre>

<p>the above function sends the "$row->aid" value to a javascript function through ajax.</p>

<p>in the javascript however, i want to make a function that needs the ++value of the $row->aid variable. i want the php to get the new value and then pass it again to javascript.</p>

<p>how do i do it without a page reload?</p>

<p>to make things more clear, i just need to get the next incremented value of the php variable. i want php to get the next ++ value from the DB and pass it back to JS.</p>

<p>please help me do this. ;))</p>
