PHP- How to display images stored in array with next and prev hyperlink
<p>This question is related to PHP-MySQL. I am a bit new to PHP. So, I really need someone's help.</p>

<p>DESCRIPTION:</p>

<p>I am returning images from a database and store them in PHP array. The images can be 2 or 3 depends on the result set. So, now I have PHP array of images. I am able to show them on a page. The problem is I want to show one image at a time. Second, I want to make next and prev hyperlink to move across. I've tried several times, looked out for answers but couldnt get succeed.</p>

<p>I am writing code here and expecting that anyone would help me surely. I really appreciate for this help. </p>

<p>CODE:</p>

<pre><code>$query="SELECT letterNo, height, path from imageTable where letterNo=".$letterNumber;

$rs=mysql_query($query,$connection);
$totalRows=mysql_num_rows($rs);
$myArray[ ] = array();
$image[ ]=array();

for ($i = 0; $i &lt; $totalRows; ++$i)
{
    $myArray[$i] = mysql_fetch_array($rs);
    $image[$i]='&lt;img src="' .$myArray[$i]['path'].'.jpg"' .' width="630" height="'.$myArray[$i] ['height'].'" alt=Letter "'.$letterNumber.'" /&gt;';
}
for($i=0;$i&lt;$totalRows;$i++)
{
print $image[$i];
}
</code></pre>

<p>Thank you and waiting for help...</p>
