title: i want to know how to echo multiple news in marquee between the table
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/11014769/how-to-show-multiple-news-in-marquee-from-mysql-using-php">how to show multiple news in marquee from mysql using php</a>  </p>
  </blockquote>
  
  
  
  <p>I want to know how to echo multiple news in marquee between the table, I am able to     echo  only one news, I want to view more than 4 news in home page inside the table using marquee , news is already posted in database . I am using this code:</p>
  
  <pre><code>&lt;?php
  
  include("connect.php");
  
  $select="SELECT newsid, headlines from news WHERE uploaddate order by uploaddate desc limit 4";
  
  $rsd=mysql_query($select);
  
  while($row = mysql_fetch_array($rsd))
  {
      $newsid=$row['newsid'];
      $tittle=$row['headlines'];
  }
  
  
  ?&gt;
  </code></pre>
  
  <p>In design i am using this code</p>
  
  <pre><code>&lt;table &gt;
  &lt;tr&gt;
      &lt;td width="87%"&gt;
      &lt;marquee style="color: #FF0000; font-family: Verdana; font-variant: small-caps; font-size: 10pt; font-weight: bold" scrollAmount="2" scrollDelay="20" width="840" bgColor="#CCCCFF" height="24"&gt;
       &lt;?php echo $tittle; ?&gt;&lt;/marquee&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>