http://barzilaymor.co.il/diurplus/DiurPlus.php

I have written the upper page.

It is long but the script is very short and simple.
It is in the bottom of the file:
HTML Code:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>       <script type="text/javascript">
          
           function changepage(page){
                // Create a variable to refer to our request object:
                var xmlhttp;

                if (window.XMLHttpRequest){
                         // code for IE7+, Firefox, Chrome, Opera, Safari
                        xmlhttp=new XMLHttpRequest();
                }
                else{
                        // code for IE6, IE5
                        xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
                  }
                  xmlhttp.onreadystatechange = function(){
                      // This code will be executed each time the readyState changes
                       if (xmlhttp.readyState==4 && xmlhttp.status==200){
                            // This code will be executed if our request
                            // is completed
                            document.getElementById("result-box").innerHTML=xmlhttp.responseText;
                       }
                  }
                  var request='?';

                   xmlhttp.open("GET","SearchResultAjax.php"+request+"page="+page,true);
                   xmlhttp.send();
                  
           }
           (function(){ 
                                         $('#next-page').on('click',changepage( 2 )); 
               
                     
                })();
       </script>
Now you can see in the bottom of the page the symbol
2 ?>
but you wont find them in the source.

I have searched for them, they are not there.
So it must be the script that did.

But as far as I understand it, creating listener should change nothing in the content of the page until the event happened.

But you see this symbol before you clicked on anything.

So where is my mistake?

What in my code is wrong?