title: how to change the variable of php with javascript button click without reloading the page
body: <p>I have created a news area where i have display 3 thumbs of news at a time the source is from mysql database.
  i have used the query like this:</p>
  
  <p>$eu = 0;
  $limit = 3;
  $query2=mysql_query("SELECT * FROM <code>news</code> ORDER BY <code>ID</code> DESC LIMIT $eu,$limit");</p>
  
  <p>now i have also create two buttons with  like this</p>
  
  
  
  
  
  <p>i want to use this buttons for display the next 3 thumbs onclick and prev 3 thumbs. but not able to change the value inside the query i.e $eu. </p>
  
  <p>how can i change the $eu value inside the mysql query with javascript or any other suggestion and also i dont want to do this with reload of page with passing query parameters. i want it without reloading of page</p>