change image src in php?
<p>I beginner in php and I am making small project which will help me learn more php. any way on webserver I have uploaded pictures which in this format:</p>

<pre><code>1.jpg
2.jpg
3.jpg
4.jpg
5.jpg 
</code></pre>

<p>and so on....</p>

<p>in the body of my page I have:</p>

<pre><code>&lt;?php
$imageNumber = 1;
?&gt;
&lt;img src="'$imageNumber'.'.jpg'"&gt;
</code></pre>

<p>why is this code is not working ?
also I want to create a function that every time the user click a button the <code>$imageNumber</code> get incremented by <code>1</code></p>
