title: Scrolling profiles of most recent members
body: <p>I have a file recent.php that shows recent 15 members who has joined my website. Since 15 is a big number, I wish to have a scrolling effect on the page so that all recent 15 profiles will keep scrolling. Then I came across <a href="http://logicbox.net/jquery/simplyscroll/" rel="nofollow">SimplyScroll</a> but here is the issue that I am facing.
  I downloaded the script and went through all the test files and I have understood how to do it if I have static images but dont know how to do it when there is a dynamic data that comes from database in form of html table (top 15 registered members and their profiles. Can someone help me where to make changes to get the scrolling effect? Here is the code of recent.php Thanks.</p>
  
  <pre><code>&lt;?php
  session_start()
  
  include("connect/config.php");
  if($_SESSION['gender123'])
  {
      if($_SESSION['gender123']=='Male')
      {
       $gender="where gender='Female'";
      }
      else
      {
       $gender="where gender='Male'";     
      }       
  }
  $sql="select * from register $gender order by index_id DESC LIMIT 0,15";
  $result=mysql_query($sql) or die(mysql_error());    
  $abcdef=$_SESSION['userid'];
  $select="select * from payments where pmatri_id='$abcdef' or pemail='$abcdef'";
  $exe=mysql_query($select) or die(mysql_error());
  $fetch123=mysql_fetch_array($exe);
  ?&gt;
  
  
  &lt;table width="210px" align="left" cellpadding="0" cellspacing="0" border="0" class="text2"&gt;
  
      &lt;tr valign="top"&gt;
  
          &lt;?php while($fetch=mysql_fetch_array($result)) { ?&gt;
  
          &lt;td valign="top" align="left" height="55px" style="padding:1px; max-width:120px; min-width:120px;"&gt;
              &lt;?php if($_SESSION[ 'userid']) { if($fetch123[ 'profile']-$fetch123[ 'r_profile']&gt;0) { ?&gt;
              &lt;a href="memprofile.php?user_id=&lt;?php echo $fetch['matri_id']; ?&gt;"&gt;
  
                  &lt;?php if($fetch[ 'photo1_approve']=="No" ) { ?&gt;
                  &lt;img src="images/No-Image-icon.png" height="100" width="90px" border="0" /&gt;
                  &lt;?php } else if($fetch[ 'photo1']=='' ) { ?&gt;
                  &lt;img src="images/No-Image-icon.png" height="100" width="90px" border="0" /&gt;
                  &lt;?php } else if($fetch[ 'photo_protect']=='Yes' ) { ?&gt;
                  &lt;img src="images/imagePassProtected.jpg" height="100" width="90px" border="0" /&gt;
                  &lt;?php } else { ?&gt;
                  &lt;img src="photos/&lt;?php echo $fetch['photo1']?&gt;" height="100" width="90px" border="0" /&gt;
                  &lt;?php } ?&gt;
                  &lt;br /&gt;
                  &lt;h3&gt;&lt;?php echo $fetch['firstname']." ".$fetch['lastname']; ?&gt;&lt;/h3&gt;
              &lt;/a&gt;
           &lt;/td&gt;
          &lt;?php } ?&gt;
      &lt;/tr&gt;
  
  &lt;/table&gt;
  </code></pre>