Wednesday, January 21, 2015

Horizontal Marquee with dynamic data from mysql database using php

Breaking News Scrolling in marquee from mysql Database

<?php
$fetch=mysql_query("select * from articles where hot='Yes' limit 10");
if(mysql_num_rows($fetch))
{
?>
<marquee behavior="scroll" scrollamount="2" direction="left" onmouseover="this.stop();" onmouseout="this.start();">

<?php
// $result = array();
while($row=mysql_fetch_assoc($fetch))
{
$id=$row['AID'];
$feed=$row['ATitle'];
echo "<a href='articledetails.php?aid=".$row['AID']."' style='color: rgb(2, 2, 207);'>**".$feed."&nbsp</a>";
}
}
?>


</marquee>

1 comment:

How to get Logged In Username in Wordpress or Woocommerce

It is really easy to get the logged-in user’s information in Wordpress or Woocommerce. In this article we will show you how to get the relat...